#C7B226#C7B226
#C7B226 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.9% C 0.148 H 100.1°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).
Color values
| HEX | #C7B226 |
|---|---|
| RGB | rgb(199, 178, 38) |
| HSL | hsl(52, 68%, 46%) |
| HSV | hsv(52, 81%, 78%) |
| CMYK | cmyk(0%, 10.6%, 80.9%, 22%) |
| CIE-LAB | lab(72.31, -6.51, 67.62) |
| CIE-LCH | lch(72.31, 67.93, 95.50°) |
| OKLab | oklab(75.91% -0.0259 0.146) |
| OKLCH | oklch(75.91% 0.148 100.1) |
| XYZ | xyz(39.8255, 44.1248, 8.2526) |
| Luminance | 0.4412 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Brownish Yellow
#C9B003
ΔE00 1.81
Muddy Yellow
#BFAC05
ΔE00 2.14
Mustard (survey)
#CEB301
ΔE00 2.34
Olive Yellow
#C2B709
ΔE00 3.14
Dark Yellow
#D5B60A
ΔE00 3.42
Mustard Yellow
#D2BD0A
ΔE00 3.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C7B226 #263BC7
analogous
#C76226 #C7B226 #8CC726
triadic
#C7B226 #26C7B2 #B226C7
tetradic
#C7B226 #26C762 #263BC7 #C7268C
square
#C7B226 #26C762 #263BC7 #C7268C
split-complementary
#C7B226 #268CC7 #6226C7
monochromatic
#605612 #94841C #C7B226 #DDCA4D #E7DA81
Accessibility & contrast
On white
2.14
#C7B226 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.82
#C7B226 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C7B226
9.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C7B226 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C7B226 | 1.00 | 2.14 | 9.82 | 9.82 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD00
Deuteranopia (green-blind)
#CAB531
Tritanopia (blue-blind)
#D7A499
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #c7b226; /* rgb */ color: rgb(199, 178, 38); /* oklch */ color: oklch(75.9% 0.148 100.1);
Tailwind
colors: {
custom: {
50: '#dcc86e',
500: '#c7b226',
950: '#000000',
},
}SCSS
$custom: #c7b226; $custom-light: #dcc86e; $custom-dark: #000000;
JSON
{
"hex": "#c7b226",
"rgb": {
"r": 199,
"g": 178,
"b": 38
},
"hsl": {
"h": 52.174,
"s": 67.932,
"l": 46.471
},
"oklch": {
"l": 0.75911,
"c": 0.14824,
"h": 100.1
},
"luminance": 0.44123
}Semantic roles & 50–950 ramp
primary
#C7B226
secondary
#7985CF
accent
#54EB3D
background
#FEFCF7
surface
#FCF8ED
border
#D5D1C8
text
#161308
muted
#84827B