#B7AF2A#B7AF2A
#B7AF2A is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.8% C 0.145 H 105.9°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).
Color values
| HEX | #B7AF2A |
|---|---|
| RGB | rgb(183, 175, 42) |
| HSL | hsl(57, 63%, 44%) |
| HSV | hsv(57, 77%, 72%) |
| CMYK | cmyk(0%, 4.4%, 77%, 28.2%) |
| CIE-LAB | lab(70.10, -11.80, 63.91) |
| CIE-LCH | lch(70.10, 64.99, 100.47°) |
| OKLab | oklab(73.82% -0.0396 0.1395) |
| OKLCH | oklch(73.82% 0.145 105.9) |
| XYZ | xyz(35.2778, 40.8957, 8.2254) |
| Luminance | 0.4089 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Olive Yellow
#C2B709
ΔE00 3.41
Muddy Yellow
#BFAC05
ΔE00 3.55
Puke
#A5A502
ΔE00 4.04
Vomit
#A2A415
ΔE00 4.55
Puke Yellow
#C2BE0E
ΔE00 4.64
Mustard Green
#A8B504
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B7AF2A #2A32B7
analogous
#B7692A #B7AF2A #79B72A
triadic
#B7AF2A #2AB7AF #AF2AB7
tetradic
#B7AF2A #2AB769 #2A32B7 #B72A79
square
#B7AF2A #2AB769 #2A32B7 #B72A79
split-complementary
#B7AF2A #2A79B7 #692AB7
monochromatic
#535013 #857F1F #B7AF2A #D5CD49 #E1DB7B
Accessibility & contrast
On white
2.29
#B7AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.18
#B7AF2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B7AF2A
9.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B7AF2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B7AF2A | 1.00 | 2.29 | 9.18 | 9.18 |
| #FFFFFF | 2.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BFA806
Deuteranopia (green-blind)
#C2AE35
Tritanopia (blue-blind)
#C5A396
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #b7af2a; /* rgb */ color: rgb(183, 175, 42); /* oklch */ color: oklch(73.8% 0.145 105.9);
Tailwind
colors: {
custom: {
50: '#d0c66f',
500: '#b7af2a',
950: '#000000',
},
}SCSS
$custom: #b7af2a; $custom-light: #d0c66f; $custom-dark: #000000;
JSON
{
"hex": "#b7af2a",
"rgb": {
"r": 183,
"g": 175,
"b": 42
},
"hsl": {
"h": 56.596,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.73822,
"c": 0.14499,
"h": 105.9
},
"luminance": 0.40894
}Semantic roles & 50–950 ramp
primary
#B7AF2A
secondary
#7479C9
accent
#4BE642
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B