Action
Primary button
Use the controls above or point to and press the button to inspect its visual states.
Color reference
Soft Mid-light Amber
This is a soft, mid-light amber under the deterministic OKLCH hue, lightness, and chroma ranges. Its closest standardized CSS named color is Sienna (#A0522D), measured with straight-line OKLab distance.
Copyable values
Values are calculated from the same opaque sRGB color. Display rounding does not alter the internal calculations.
| Format | Value | Action |
|---|---|---|
| HEX | #8C6342 |
|
| RGB | rgb(140 99 66) |
|
| HSL | hsl(27 35.92% 40.39%) |
|
| HSV | hsv(27 52.86% 54.9%) |
|
| HWB | hwb(27 25.88% 45.1%) |
|
| XYZ D65 | color(xyz-d65 0.162599 0.148931 0.071727) |
|
| LAB | lab(45.7843% 14.1635 25.5952) |
|
| LCH | lch(45.7843% 29.2526 61.0414) |
|
| OKLAB | oklab(53.4733% 0.036342 0.061184) |
|
| OKLCH | oklch(53.4733% 0.071163 59.2908) |
Real-world test
Preview the source as a primary action, subtle status, form treatment, and card surface. Persistent state controls help touch and keyboard users inspect the same normal, hover, and active colors.
Action
Use the controls above or point to and press the button to inspect its visual states.
Status
A 12% source tint over white provides the background; readable text is selected separately.
Form
Source ring on white: 5.28:1 · meets the 3:1 non-text threshold where applicable.
Surface
The selected state becomes the card surface with its strongest black-or-white text pairing.
Accessibility diagnostics
Each result applies only to the named foreground, background, text size, and requirement. It is not a complete accessibility or component-conformance claim.
On white
On black
Use guidance
Pass in a tested context
#8C6342 reaches 5.05:1 on Hue Codex paper, meeting WCAG AA for normal text in that exact pairing.
Potential fit
Against Hue Codex paper, the color reaches 5.05:1. That meets the 3:1 color-contrast threshold where WCAG 1.4.11 applies, but states, shape, and non-color cues still need review.
Readable pairing available
White text provides the stronger black/white pairing on #8C6342 at 5.28:1. This validates only that text pair, not hover, focus, disabled, or adjacent-color states.
Restrained neutral
Its OKLCH chroma of 0.0712 is restrained, which is generally more suitable for surfaces, borders, or neutral system roles than for a vivid accent.
Pair available
The stronger black/white background is white at 5.28:1. Always retest against the actual rendered background and text size.
Tested backgrounds
| Pair | Background | Contrast ratio |
|---|---|---|
| White#FFFFFF | 5.28:1 | |
| Hue Codex paper#FBFAF5 | 5.05:1 | |
| Soft neutral#F2EFE6 | 4.59:1 | |
| Black#000000 | 3.98:1 | |
| Hue Codex ink#10212B | 3.12:1 |
Design-system starting point
The source color is preserved at the nearest lightness step. Other swatches keep its OKLCH hue, moderate chroma toward the extremes, and reduce chroma only when needed to remain in sRGB.
This is a Hue Codex reference scale, not a claim that the values match Tailwind, Material, or another framework’s named palette.
Adjust the #8C6342 scale in Tints, Shades & TonesColor relationships
Hue rotations use OKLCH while preserving lightness and requested chroma. When a rotated result falls outside sRGB, chroma is reduced deterministically and disclosed.
Applied pairing
The source anchors the main action while the complement marks a secondary status. Contrast is selected separately for each fill.
Distance matching
Matches use straight-line OKLab distance ×100. A smaller value means the coordinates are closer in this model; it is not a claim that two tokens are interchangeable in a design system.
CSS named color
#A0522D OKLab distance ×100: 5.04
Tailwind v4 default
oklch(54.7% 0.021 43.1)
OKLab distance ×100: 5.28 · sRGB preview #7C6D67
Print boundary
Reliable print matching needs licensed reference data plus a defined ink, paper, profile, and viewing condition.
Read the print methodologyColor-vision screening
These encoded-sRGB matrix previews are screening approximations. They help reveal possible color-only distinctions but do not reproduce every person’s vision or establish accessibility conformance.
Red-vision deficiency approximation
Green-vision deficiency approximation
Blue-yellow deficiency approximation
Monochromatic-vision approximation
Ready to use
Exports preserve the source, readable foreground, and generated 50–900 scale. Tailwind v4 CSS-first and Tailwind v3 JavaScript-config formats are labeled separately.
Semantic aliases and the complete 50–900 scale.
:root {
--color-primary: #8C6342;
--color-on-primary: #FFFFFF;
--color-primary-oklch: oklch(53.4733% 0.071163 59.2908);
--color-primary-50: #FFF3E9;
--color-primary-100: #F6D7C0;
--color-primary-200: #DEBDA3;
--color-primary-300: #C7A387;
--color-primary-400: #B0896C;
--color-primary-500: #997151;
--color-primary-600: #8C6342;
--color-primary-700: #684426;
--color-primary-800: #4F2F13;
--color-primary-900: #381C02;
}
Current @theme syntax for bg-brand, text-brand, and scale utilities.
@import "tailwindcss";
@theme {
--color-brand: #8C6342;
--color-brand-foreground: #FFFFFF;
--color-brand-50: #FFF3E9;
--color-brand-100: #F6D7C0;
--color-brand-200: #DEBDA3;
--color-brand-300: #C7A387;
--color-brand-400: #B0896C;
--color-brand-500: #997151;
--color-brand-600: #8C6342;
--color-brand-700: #684426;
--color-brand-800: #4F2F13;
--color-brand-900: #381C02;
}
CommonJS theme.extend.colors for JavaScript-config projects.
module.exports = {
theme: {
extend: {
colors: {
brand: {
'50': '#FFF3E9',
'100': '#F6D7C0',
'200': '#DEBDA3',
'300': '#C7A387',
'400': '#B0896C',
'500': '#997151',
'600': '#8C6342',
'700': '#684426',
'800': '#4F2F13',
'900': '#381C02',
DEFAULT: '#8C6342',
foreground: '#FFFFFF',
},
},
},
},
};
Semantic source, foreground, OKLCH, and scale variables.
$color-primary: #8C6342;
$color-on-primary: #FFFFFF;
$color-primary-oklch: oklch(53.4733% 0.071163 59.2908);
$color-primary-50: #FFF3E9;
$color-primary-100: #F6D7C0;
$color-primary-200: #DEBDA3;
$color-primary-300: #C7A387;
$color-primary-400: #B0896C;
$color-primary-500: #997151;
$color-primary-600: #8C6342;
$color-primary-700: #684426;
$color-primary-800: #4F2F13;
$color-primary-900: #381C02;
Static fallbacks followed by OKLab tint and shade declarations.
:root {
--color-primary: #8C6342;
--color-primary-tint: #DEBDA3;
--color-primary-tint: color-mix(in oklab, var(--color-primary) 72%, white);
--color-primary-shade: #684426;
--color-primary-shade: color-mix(in oklab, var(--color-primary) 82%, black);
}
Source formats, readable text, and the generated scale.
{
"name": "Soft Mid-light Amber",
"hex": "#8C6342",
"rgb": "rgb(140 99 66)",
"oklch": "oklch(53.4733% 0.071163 59.2908)",
"recommendedText": "#FFFFFF",
"scale": {
"50": "#FFF3E9",
"100": "#F6D7C0",
"200": "#DEBDA3",
"300": "#C7A387",
"400": "#B0896C",
"500": "#997151",
"600": "#8C6342",
"700": "#684426",
"800": "#4F2F13",
"900": "#381C02"
}
}
Continue the decision
Reference values are a starting point. Test the color in its real role, background, states, typography, and surrounding palette before shipping.