#96A228#96A228

#96A228 is a light, vivid yellow. Relative luminance 0.325; OKLCH L 68.1% C 0.140 H 115.2°. Best body text is #000000 at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#96A228
RGBrgb(150, 162, 40)
HSLhsl(66, 60%, 40%)
HSVhsv(66, 75%, 64%)
CMYKcmyk(7.4%, 0%, 75.3%, 36.5%)
CIE-LABlab(63.74, -19.61, 57.69)
CIE-LCHlch(63.74, 60.93, 108.77°)
OKLaboklab(68.07% -0.0598 0.1271)
OKLCHoklch(68.07% 0.14 115.2)
XYZxyz(25.8817, 32.4783, 6.9126)
Luminance0.3248 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#96A228 #3428A2
analogous
#A27128 #96A228 #59A228
triadic
#96A228 #2896A2 #A22896
tetradic
#96A228 #28A271 #3428A2 #A22859
square
#96A228 #28A271 #3428A2 #A22859
split-complementary
#96A228 #2859A2 #7128A2
monochromatic
#3B4010 #69711C #96A228 #BFCE39 #CFDA6A

Accessibility & contrast

On white

2.80
#96A228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.50
#96A228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #96A228
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##96A228#FFFFFF#000000##000000
##96A2281.002.807.507.50
#FFFFFF2.801.0021.0021.00
#0000007.5021.001.001.00
##0000007.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A0C
Deuteranopia (green-blind)
#AD9B32
Tritanopia (blue-blind)
#A0988B
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #96a228;
/* rgb */ color: rgb(150, 162, 40);
/* oklch */ color: oklch(68.1% 0.140 115.2);
Tailwind
colors: {
  custom: {
    50: '#b8bd6c',
    500: '#96a228',
    950: '#000000',
  },
}
SCSS
$custom: #96a228;
$custom-light: #b8bd6c;
$custom-dark: #000000;
JSON
{
  "hex": "#96a228",
  "rgb": {
    "r": 150,
    "g": 162,
    "b": 40
  },
  "hsl": {
    "h": 65.902,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.68067,
    "c": 0.14049,
    "h": 115.2
  },
  "luminance": 0.32478
}

Semantic roles & 50–950 ramp

primary
#96A228
secondary
#6E65C1
accent
#44E454
background
#FBFBF6
surface
#F6F6EC
border
#D0D0C7
text
#121207
muted
#81817A

Preview Lab

Preview with #96A228

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

Preview Lab → · Contrast checker → · Palette generator →

#96A228 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva