#B1B228#B1B228
#B1B228 is a light, vivid yellow. Relative luminance 0.413; OKLCH L 73.9% C 0.150 H 110.0°. Best body text is #000000 at 9.27:1 contrast (WCAG AA passes).
Color values
| HEX | #B1B228 |
|---|---|
| RGB | rgb(177, 178, 40) |
| HSL | hsl(60, 63%, 43%) |
| HSV | hsv(60, 78%, 70%) |
| CMYK | cmyk(0.6%, 0%, 77.5%, 30.2%) |
| CIE-LAB | lab(70.41, -16.03, 64.63) |
| CIE-LCH | lch(70.41, 66.58, 103.93°) |
| OKLab | oklab(73.95% -0.0513 0.1409) |
| OKLCH | oklch(73.95% 0.15 110) |
| XYZ | xyz(34.4361, 41.3421, 8.1729) |
| Luminance | 0.4134 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.98
Snot
#ACBB0D
ΔE00 3.79
Puke
#A5A502
ΔE00 3.89
Vomit
#A2A415
ΔE00 4.15
Olive Yellow
#C2B709
ΔE00 4.34
Puke Yellow
#C2BE0E
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B1B228 #2928B2
analogous
#B26E28 #B1B228 #6CB228
triadic
#B1B228 #28B1B2 #B228B1
tetradic
#B1B228 #28B26E #2928B2 #B2286C
square
#B1B228 #28B26E #2928B2 #B2286C
split-complementary
#B1B228 #286CB2 #6E28B2
monochromatic
#4E4E12 #7F801D #B1B228 #D4D543 #DFE075
Accessibility & contrast
On white
2.27
#B1B228 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.27
#B1B228 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B1B228
9.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B1B228 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B1B228 | 1.00 | 2.27 | 9.27 | 9.27 |
| #FFFFFF | 2.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C2AE34
Tritanopia (blue-blind)
#BEA699
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #b1b228; /* rgb */ color: rgb(177, 178, 40); /* oklch */ color: oklch(73.9% 0.150 110.0);
Tailwind
colors: {
custom: {
50: '#ccc86e',
500: '#b1b228',
950: '#000000',
},
}SCSS
$custom: #b1b228; $custom-light: #ccc86e; $custom-dark: #000000;
JSON
{
"hex": "#b1b228",
"rgb": {
"r": 177,
"g": 178,
"b": 40
},
"hsl": {
"h": 60.435,
"s": 63.303,
"l": 42.745
},
"oklch": {
"l": 0.73946,
"c": 0.14991,
"h": 110
},
"luminance": 0.41341
}Semantic roles & 50–950 ramp
primary
#B1B228
secondary
#6F6FC7
accent
#41E643
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B