#B2B840#B2B840
#B2B840 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.5% C 0.141 H 112.1°. Best body text is #000000 at 9.82:1 contrast (WCAG AA passes).
Color values
| HEX | #B2B840 |
|---|---|
| RGB | rgb(178, 184, 64) |
| HSL | hsl(63, 48%, 49%) |
| HSV | hsv(63, 65%, 72%) |
| CMYK | cmyk(3.3%, 0%, 65.2%, 27.8%) |
| CIE-LAB | lab(72.31, -17.44, 57.86) |
| CIE-LCH | lch(72.31, 60.43, 106.78°) |
| OKLab | oklab(75.53% -0.053 0.1307) |
| OKLCH | oklch(75.53% 0.141 112.1) |
| XYZ | xyz(36.4270, 44.1169, 11.4460) |
| Luminance | 0.4412 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 3.83
Snot
#ACBB0D
ΔE00 3.84
Sick Green
#9DB92C
ΔE00 4.86
Pea
#A4BF20
ΔE00 4.90
Booger
#9BB53C
ΔE00 5.02
Bile
#B5C306
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B2B840 #4640B8
analogous
#B88240 #B2B840 #76B840
triadic
#B2B840 #40B2B8 #B840B2
tetradic
#B2B840 #40B882 #4640B8 #B84076
square
#B2B840 #40B882 #4640B8 #B84076
split-complementary
#B2B840 #4076B8 #8240B8
monochromatic
#5A5D20 #868B30 #B2B840 #C6CB6A #D8DB97
Accessibility & contrast
On white
2.14
#B2B840 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.82
#B2B840 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B2B840
9.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B2B840 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B2B840 | 1.00 | 2.14 | 9.82 | 9.82 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.82 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.82 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6B030
Deuteranopia (green-blind)
#C6B348
Tritanopia (blue-blind)
#BEAD9F
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #b2b840; /* rgb */ color: rgb(178, 184, 64); /* oklch */ color: oklch(75.5% 0.141 112.1);
Tailwind
colors: {
custom: {
50: '#cccd7b',
500: '#b2b840',
950: '#000000',
},
}SCSS
$custom: #b2b840; $custom-light: #cccd7b; $custom-dark: #000000;
JSON
{
"hex": "#b2b840",
"rgb": {
"r": 178,
"g": 184,
"b": 64
},
"hsl": {
"h": 63,
"s": 48.387,
"l": 48.627
},
"oklch": {
"l": 0.75526,
"c": 0.14103,
"h": 112.1
},
"luminance": 0.44116
}Semantic roles & 50–950 ramp
primary
#B2B840
secondary
#908DC7
accent
#50D857
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C