#9EB231#9EB231

#9EB231 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.5% C 0.151 H 118.1°. Best body text is #000000 at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#9EB231
RGBrgb(158, 178, 49)
HSLhsl(69, 57%, 45%)
HSVhsv(69, 72%, 70%)
CMYKcmyk(11.2%, 0%, 72.5%, 30.2%)
CIE-LABlab(68.99, -23.74, 59.78)
CIE-LCHlch(68.99, 64.33, 111.66°)
OKLaboklab(72.46% -0.0709 0.1329)
OKLCHoklch(72.46% 0.151 118.1)
XYZxyz(30.5760, 39.3319, 8.8862)
Luminance0.3933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB231 #4531B2
analogous
#B28531 #9EB231 #5EB231
triadic
#9EB231 #319EB2 #B2319E
tetradic
#9EB231 #31B285 #4531B2 #B2315E
square
#9EB231 #31B285 #4531B2 #B2315E
split-complementary
#9EB231 #315EB2 #8531B2
monochromatic
#495217 #738224 #9EB231 #BCCF51 #CEDC81

Accessibility & contrast

On white

2.37
#9EB231 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.87
#9EB231 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EB231
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EB231#FFFFFF#000000##000000
##9EB2311.002.378.878.87
#FFFFFF2.371.0021.0021.00
#0000008.8721.001.001.00
##0000008.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA819
Deuteranopia (green-blind)
#BCA93C
Tritanopia (blue-blind)
#A8A899
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9eb231;
/* rgb */ color: rgb(158, 178, 49);
/* oklch */ color: oklch(72.5% 0.151 118.1);
Tailwind
colors: {
  custom: {
    50: '#bec972',
    500: '#9eb231',
    950: '#000000',
  },
}
SCSS
$custom: #9eb231;
$custom-light: #bec972;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb231",
  "rgb": {
    "r": 158,
    "g": 178,
    "b": 49
  },
  "hsl": {
    "h": 69.302,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.72456,
    "c": 0.15058,
    "h": 118.1
  },
  "luminance": 0.39332
}

Semantic roles & 50–950 ramp

primary
#9EB231
secondary
#8579C5
accent
#48E05F
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9EB231

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

Preview Lab → · Contrast checker → · Palette generator →

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