#9EB228#9EB228

#9EB228 is a light, vivid yellow. Relative luminance 0.393; OKLCH L 72.4% C 0.156 H 117.9°. Best body text is #000000 at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#9EB228
RGBrgb(158, 178, 40)
HSLhsl(69, 63%, 43%)
HSVhsv(69, 78%, 70%)
CMYKcmyk(11.2%, 0%, 77.5%, 30.2%)
CIE-LABlab(68.94, -24.17, 62.74)
CIE-LCHlch(68.94, 67.24, 111.07°)
OKLaboklab(72.4% -0.0728 0.1376)
OKLCHoklch(72.4% 0.156 117.9)
XYZxyz(30.4047, 39.2634, 7.9839)
Luminance0.3926 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9EB228 #3C28B2
analogous
#B28128 #9EB228 #59B228
triadic
#9EB228 #289EB2 #B2289E
tetradic
#9EB228 #28B281 #3C28B2 #B22859
square
#9EB228 #28B281 #3C28B2 #B22859
split-complementary
#9EB228 #2859B2 #8128B2
monochromatic
#454E12 #72801D #9EB228 #BFD543 #D0E075

Accessibility & contrast

On white

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

On black

8.85
#9EB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9EB228
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9EB228#FFFFFF#000000##000000
##9EB2281.002.378.858.85
#FFFFFF2.371.0021.0021.00
#0000008.8521.001.001.00
##0000008.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#BEA800
Deuteranopia (green-blind)
#BCA935
Tritanopia (blue-blind)
#A8A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9eb228;
/* rgb */ color: rgb(158, 178, 40);
/* oklch */ color: oklch(72.4% 0.156 117.9);
Tailwind
colors: {
  custom: {
    50: '#bec96e',
    500: '#9eb228',
    950: '#000000',
  },
}
SCSS
$custom: #9eb228;
$custom-light: #bec96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9eb228",
  "rgb": {
    "r": 158,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 68.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.724,
    "c": 0.15564,
    "h": 117.9
  },
  "luminance": 0.39263
}

Semantic roles & 50–950 ramp

primary
#9EB228
secondary
#7B6FC7
accent
#41E659
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9EB228

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

Preview Lab → · Contrast checker → · Palette generator →

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