#9EB522#9EB522

#9EB522 is a light, vivid yellow. Relative luminance 0.404; OKLCH L 73.1% C 0.162 H 118.8°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#9EB522
RGBrgb(158, 181, 34)
HSLhsl(69, 68%, 42%)
HSVhsv(69, 81%, 71%)
CMYKcmyk(12.7%, 0%, 81.2%, 29%)
CIE-LABlab(69.78, -25.87, 65.22)
CIE-LCHlch(69.78, 70.17, 111.64°)
OKLaboklab(73.06% -0.0779 0.1418)
OKLCHoklch(73.06% 0.162 118.8)
XYZxyz(30.9139, 40.4326, 7.6888)
Luminance0.4043 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB522 #3922B5
analogous
#B58322 #9EB522 #54B522
triadic
#9EB522 #229EB5 #B5229E
tetradic
#9EB522 #22B583 #3922B5 #B52254
square
#9EB522 #22B583 #3922B5 #B52254
split-complementary
#9EB522 #2254B5 #8322B5
monochromatic
#444E0F #718118 #9EB522 #C1DA3A #D1E46E

Accessibility & contrast

On white

2.31
#9EB522 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#9EB522 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EB522
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EB522#FFFFFF#000000##000000
##9EB5221.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#BFAB31
Tritanopia (blue-blind)
#A8AB9B
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #9eb522;
/* rgb */ color: rgb(158, 181, 34);
/* oklch */ color: oklch(73.1% 0.162 118.8);
Tailwind
colors: {
  custom: {
    50: '#bfcb6c',
    500: '#9eb522',
    950: '#000000',
  },
}
SCSS
$custom: #9eb522;
$custom-light: #bfcb6c;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb522",
  "rgb": {
    "r": 158,
    "g": 181,
    "b": 34
  },
  "hsl": {
    "h": 69.388,
    "s": 68.372,
    "l": 42.157
  },
  "oklch": {
    "l": 0.73064,
    "c": 0.16182,
    "h": 118.8
  },
  "luminance": 0.40432
}

Semantic roles & 50–950 ramp

primary
#9EB522
secondary
#7869CA
accent
#3DEB58
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #9EB522

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#9EB522 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva