#B3AF2A#B3AF2A
#B3AF2A is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.5% C 0.146 H 107.7°. Best body text is #000000 at 9.08:1 contrast (WCAG AA passes).
Color values
| HEX | #B3AF2A |
|---|---|
| RGB | rgb(179, 175, 42) |
| HSL | hsl(58, 62%, 43%) |
| HSV | hsv(58, 77%, 70%) |
| CMYK | cmyk(0%, 2.2%, 76.5%, 29.8%) |
| CIE-LAB | lab(69.76, -13.55, 63.47) |
| CIE-LCH | lch(69.76, 64.90, 102.05°) |
| OKLab | oklab(73.47% -0.0443 0.1387) |
| OKLCH | oklch(73.47% 0.146 107.7) |
| XYZ | xyz(34.3397, 40.4120, 8.1815) |
| Luminance | 0.4041 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.50
Vomit
#A2A415
ΔE00 3.87
Olive Yellow
#C2B709
ΔE00 4.02
Mustard Green
#A8B504
ΔE00 4.27
Muddy Yellow
#BFAC05
ΔE00 4.53
Puke Yellow
#C2BE0E
ΔE00 4.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B3AF2A #2A2EB3
analogous
#B36A2A #B3AF2A #72B32A
triadic
#B3AF2A #2AB3AF #AF2AB3
tetradic
#B3AF2A #2AB36A #2A2EB3 #B32A72
square
#B3AF2A #2AB36A #2A2EB3 #B32A72
split-complementary
#B3AF2A #2A72B3 #6A2AB3
monochromatic
#504E13 #817F1E #B3AF2A #D4D046 #DFDC78
Accessibility & contrast
On white
2.31
#B3AF2A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.08
#B3AF2A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B3AF2A
9.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B3AF2A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B3AF2A | 1.00 | 2.31 | 9.08 | 9.08 |
| #FFFFFF | 2.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.08 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.08 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA807
Deuteranopia (green-blind)
#C0AD35
Tritanopia (blue-blind)
#C0A396
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #b3af2a; /* rgb */ color: rgb(179, 175, 42); /* oklch */ color: oklch(73.5% 0.146 107.7);
Tailwind
colors: {
custom: {
50: '#cec66f',
500: '#b3af2a',
950: '#000000',
},
}SCSS
$custom: #b3af2a; $custom-light: #cec66f; $custom-dark: #000000;
JSON
{
"hex": "#b3af2a",
"rgb": {
"r": 179,
"g": 175,
"b": 42
},
"hsl": {
"h": 58.248,
"s": 61.991,
"l": 43.333
},
"oklch": {
"l": 0.73468,
"c": 0.1456,
"h": 107.7
},
"luminance": 0.40411
}Semantic roles & 50–950 ramp
primary
#B3AF2A
secondary
#7274C7
accent
#47E543
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B