#9BA227#9BA227
#9BA227 is a light, vivid yellow. Relative luminance 0.330; OKLCH L 68.5% C 0.140 H 112.9°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).
Color values
| HEX | #9BA227 |
|---|---|
| RGB | rgb(155, 162, 39) |
| HSL | hsl(63, 61%, 39%) |
| HSV | hsv(63, 76%, 64%) |
| CMYK | cmyk(4.3%, 0%, 75.9%, 36.5%) |
| CIE-LAB | lab(64.13, -17.48, 58.53) |
| CIE-LCH | lch(64.13, 61.09, 106.63°) |
| OKLab | oklab(68.47% -0.0542 0.1286) |
| OKLCH | oklch(68.47% 0.14 112.9) |
| XYZ | xyz(26.8050, 32.9563, 6.8682) |
| Luminance | 0.3296 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 2.37
Pea Soup Green
#94A617
ΔE00 2.70
Pea Soup
#929901
ΔE00 3.26
Puke
#A5A502
ΔE00 3.49
Baby Poop Green
#8F9805
ΔE00 3.56
Vomit Green
#89A203
ΔE00 4.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#9BA227 #2E27A2
analogous
#A26C27 #9BA227 #5DA227
triadic
#9BA227 #279BA2 #A2279B
tetradic
#9BA227 #27A26C #2E27A2 #A2275D
square
#9BA227 #27A26C #2E27A2 #A2275D
split-complementary
#9BA227 #275DA2 #6C27A2
monochromatic
#3D3F0F #6C711B #9BA227 #C6CF37 #D4DB69
Accessibility & contrast
On white
2.77
#9BA227 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.59
#9BA227 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #9BA227
7.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##9BA227 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##9BA227 | 1.00 | 2.77 | 7.59 | 7.59 |
| #FFFFFF | 2.77 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.59 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.59 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#AF9A09
Deuteranopia (green-blind)
#AF9D31
Tritanopia (blue-blind)
#A6988B
Achromatopsia (no color)
#9B9B9B
Design tokens & code
CSS
--color: #9ba227; /* rgb */ color: rgb(155, 162, 39); /* oklch */ color: oklch(68.5% 0.140 112.9);
Tailwind
colors: {
custom: {
50: '#bcbd6b',
500: '#9ba227',
950: '#000000',
},
}SCSS
$custom: #9ba227; $custom-light: #bcbd6b; $custom-dark: #000000;
JSON
{
"hex": "#9ba227",
"rgb": {
"r": 155,
"g": 162,
"b": 39
},
"hsl": {
"h": 63.415,
"s": 61.194,
"l": 39.412
},
"oklch": {
"l": 0.68475,
"c": 0.13954,
"h": 112.9
},
"luminance": 0.32956
}Semantic roles & 50–950 ramp
primary
#9BA227
secondary
#6964C1
accent
#43E44D
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#121207
muted
#81817A