#B2AF2B#B2AF2B
#B2AF2B is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.4% C 0.145 H 108.2°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #B2AF2B |
|---|---|
| RGB | rgb(178, 175, 43) |
| HSL | hsl(59, 61%, 43%) |
| HSV | hsv(59, 76%, 70%) |
| CMYK | cmyk(0%, 1.7%, 75.8%, 30.2%) |
| CIE-LAB | lab(69.68, -13.94, 63.04) |
| CIE-LCH | lch(69.68, 64.57, 102.47°) |
| OKLab | oklab(73.39% -0.0452 0.138) |
| OKLCH | oklch(73.39% 0.145 108.2) |
| XYZ | xyz(34.1275, 40.3005, 8.2661) |
| Luminance | 0.4030 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.44
Vomit
#A2A415
ΔE00 3.74
Mustard Green
#A8B504
ΔE00 4.09
Olive Yellow
#C2B709
ΔE00 4.25
Muddy Yellow
#BFAC05
ΔE00 4.82
Puke Yellow
#C2BE0E
ΔE00 4.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2AF2B #2B2EB2
analogous
#B26B2B #B2AF2B #71B22B
triadic
#B2AF2B #2BB2AF #AF2BB2
tetradic
#B2AF2B #2BB26B #2B2EB2 #B22B71
square
#B2AF2B #2BB26B #2B2EB2 #B22B71
split-complementary
#B2AF2B #2B71B2 #6B2BB2
monochromatic
#4F4E13 #817F1F #B2AF2B #D3D048 #DFDC79
Accessibility & contrast
On white
2.32
#B2AF2B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.06
#B2AF2B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2AF2B
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2AF2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2AF2B | 1.00 | 2.32 | 9.06 | 9.06 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA80A
Deuteranopia (green-blind)
#C0AC36
Tritanopia (blue-blind)
#BFA396
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #b2af2b; /* rgb */ color: rgb(178, 175, 43); /* oklch */ color: oklch(73.4% 0.145 108.2);
Tailwind
colors: {
custom: {
50: '#cdc66f',
500: '#b2af2b',
950: '#000000',
},
}SCSS
$custom: #b2af2b; $custom-light: #cdc66f; $custom-dark: #000000;
JSON
{
"hex": "#b2af2b",
"rgb": {
"r": 178,
"g": 175,
"b": 43
},
"hsl": {
"h": 58.667,
"s": 61.086,
"l": 43.333
},
"oklch": {
"l": 0.73387,
"c": 0.14525,
"h": 108.2
},
"luminance": 0.40299
}Semantic roles & 50–950 ramp
primary
#B2AF2B
secondary
#7274C7
accent
#47E444
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B