#B1AF4A#B1AF4A
#B1AF4A is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.6% C 0.123 H 108.0°. Best body text is #000000 at 9.10:1 contrast (WCAG AA passes).
Color values
| HEX | #B1AF4A |
|---|---|
| RGB | rgb(177, 175, 74) |
| HSL | hsl(59, 41%, 49%) |
| HSV | hsv(59, 58%, 69%) |
| CMYK | cmyk(0%, 1.1%, 58.2%, 30.6%) |
| CIE-LAB | lab(69.83, -12.59, 50.86) |
| CIE-LCH | lch(69.83, 52.39, 103.90°) |
| OKLab | oklab(73.55% -0.0382 0.1173) |
| OKLCH | oklch(73.55% 0.123 108) |
| XYZ | xyz(34.6985, 40.5025, 12.4672) |
| Luminance | 0.4050 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 4.82
Vomit
#A2A415
ΔE00 5.33
Khaki (survey)
#AAA662
ΔE00 5.67
Puke
#A5A502
ΔE00 5.71
Mustard Green
#A8B504
ΔE00 6.18
Booger
#9BB53C
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B1AF4A #4A4CB1
analogous
#B17C4A #B1AF4A #80B14A
triadic
#B1AF4A #4AB1AF #AF4AB1
tetradic
#B1AF4A #4AB17C #4A4CB1 #B14A80
square
#B1AF4A #4AB17C #4A4CB1 #B14A80
split-complementary
#B1AF4A #4A80B1 #7C4AB1
monochromatic
#5B5A26 #868438 #B1AF4A #C5C374 #D7D69F
Accessibility & contrast
On white
2.31
#B1AF4A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.10
#B1AF4A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B1AF4A
9.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B1AF4A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B1AF4A | 1.00 | 2.31 | 9.10 | 9.10 |
| #FFFFFF | 2.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.10 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.10 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA93F
Deuteranopia (green-blind)
#BEAC50
Tritanopia (blue-blind)
#BDA599
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #b1af4a; /* rgb */ color: rgb(177, 175, 74); /* oklch */ color: oklch(73.6% 0.123 108.0);
Tailwind
colors: {
custom: {
50: '#cbc680',
500: '#b1af4a',
950: '#000000',
},
}SCSS
$custom: #b1af4a; $custom-light: #cbc680; $custom-dark: #000000;
JSON
{
"hex": "#b1af4a",
"rgb": {
"r": 177,
"g": 175,
"b": 74
},
"hsl": {
"h": 58.835,
"s": 41.036,
"l": 49.216
},
"oklch": {
"l": 0.73553,
"c": 0.12335,
"h": 108
},
"luminance": 0.40501
}Semantic roles & 50–950 ramp
primary
#B1AF4A
secondary
#9394C3
accent
#59D157
background
#FCFCF8
surface
#F9F8EF
border
#D2D1CA
text
#14130A
muted
#82827C