#B2A342#B2A342
#B2A342 is a light, moderate yellow. Relative luminance 0.361; OKLCH L 71.0% C 0.118 H 100.5°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).
Color values
| HEX | #B2A342 |
|---|---|
| RGB | rgb(178, 163, 66) |
| HSL | hsl(52, 46%, 48%) |
| HSV | hsv(52, 63%, 70%) |
| CMYK | cmyk(0%, 8.4%, 62.9%, 30.2%) |
| CIE-LAB | lab(66.56, -6.44, 50.91) |
| CIE-LCH | lch(66.56, 51.32, 97.21°) |
| OKLab | oklab(70.95% -0.0216 0.1163) |
| OKLCH | oklch(70.95% 0.118 100.5) |
| XYZ | xyz(32.4420, 36.0541, 10.4035) |
| Luminance | 0.3605 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 5.93
Vomit
#A2A415
ΔE00 6.01
Brown Yellow
#B29705
ΔE00 6.05
Puke
#A5A502
ΔE00 6.14
Muddy Yellow
#BFAC05
ΔE00 6.15
Darkkhaki
#BDB76B
ΔE00 7.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2A342 #4251B2
analogous
#B26B42 #B2A342 #89B242
triadic
#B2A342 #42B2A3 #A342B2
tetradic
#B2A342 #42B26B #4251B2 #B24289
square
#B2A342 #42B26B #4251B2 #B24289
split-complementary
#B2A342 #4289B2 #6B42B2
monochromatic
#595121 #857A31 #B2A342 #C8BB6A #D8CF96
Accessibility & contrast
On white
2.56
#B2A342 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.21
#B2A342 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2A342
8.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2A342 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2A342 | 1.00 | 2.56 | 8.21 | 8.21 |
| #FFFFFF | 2.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.21 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.21 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19F37
Deuteranopia (green-blind)
#B6A447
Tritanopia (blue-blind)
#BF988E
Achromatopsia (no color)
#A2A2A2
Design tokens & code
CSS
--color: #b2a342; /* rgb */ color: rgb(178, 163, 66); /* oklch */ color: oklch(71.0% 0.118 100.5);
Tailwind
colors: {
custom: {
50: '#ccbe7b',
500: '#b2a342',
950: '#000000',
},
}SCSS
$custom: #b2a342; $custom-light: #ccbe7b; $custom-dark: #000000;
JSON
{
"hex": "#b2a342",
"rgb": {
"r": 178,
"g": 163,
"b": 66
},
"hsl": {
"h": 51.964,
"s": 45.902,
"l": 47.843
},
"oklch": {
"l": 0.70954,
"c": 0.11829,
"h": 100.5
},
"luminance": 0.36053
}Semantic roles & 50–950 ramp
primary
#B2A342
secondary
#8C93C4
accent
#64D652
background
#FCFBF7
surface
#F9F6EE
border
#D2D0C9
text
#141209
muted
#82817B