#B2A640#B2A640
#B2A640 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.6% C 0.123 H 102.6°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #B2A640 |
|---|---|
| RGB | rgb(178, 166, 64) |
| HSL | hsl(54, 47%, 47%) |
| HSV | hsv(54, 64%, 70%) |
| CMYK | cmyk(0%, 6.7%, 64%, 30.2%) |
| CIE-LAB | lab(67.36, -8.16, 52.66) |
| CIE-LCH | lch(67.36, 53.29, 98.80°) |
| OKLab | oklab(71.58% -0.0268 0.1197) |
| OKLCH | oklch(71.58% 0.123 102.6) |
| XYZ | xyz(32.9230, 37.1089, 10.2780) |
| Luminance | 0.3711 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 5.12
Puke
#A5A502
ΔE00 5.24
Muddy Yellow
#BFAC05
ΔE00 5.62
Khaki (survey)
#AAA662
ΔE00 6.03
Darkkhaki
#BDB76B
ΔE00 6.58
Brown Yellow
#B29705
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2A640 #404CB2
analogous
#B26D40 #B2A640 #85B240
triadic
#B2A640 #40B2A6 #A640B2
tetradic
#B2A640 #40B26D #404CB2 #B24085
square
#B2A640 #40B26D #404CB2 #B24085
split-complementary
#B2A640 #4085B2 #6D40B2
monochromatic
#585220 #857C30 #B2A640 #C8BE67 #D8D194
Accessibility & contrast
On white
2.49
#B2A640 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.42
#B2A640 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2A640
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2A640 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2A640 | 1.00 | 2.49 | 8.42 | 8.42 |
| #FFFFFF | 2.49 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A134
Deuteranopia (green-blind)
#B8A646
Tritanopia (blue-blind)
#BF9B91
Achromatopsia (no color)
#A4A4A4
Design tokens & code
CSS
--color: #b2a640; /* rgb */ color: rgb(178, 166, 64); /* oklch */ color: oklch(71.6% 0.123 102.6);
Tailwind
colors: {
custom: {
50: '#ccc07a',
500: '#b2a640',
950: '#000000',
},
}SCSS
$custom: #b2a640; $custom-light: #ccc07a; $custom-dark: #000000;
JSON
{
"hex": "#b2a640",
"rgb": {
"r": 178,
"g": 166,
"b": 64
},
"hsl": {
"h": 53.684,
"s": 47.107,
"l": 47.451
},
"oklch": {
"l": 0.71581,
"c": 0.12265,
"h": 102.6
},
"luminance": 0.37108
}Semantic roles & 50–950 ramp
primary
#B2A640
secondary
#8A90C4
accent
#5FD751
background
#FCFBF7
surface
#F9F7EE
border
#D2D0C9
text
#141209
muted
#82817B