#9CB228#9CB228

#9CB228 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.2% C 0.156 H 118.7°. Best body text is #000000 at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#9CB228
RGBrgb(156, 178, 40)
HSLhsl(70, 63%, 43%)
HSVhsv(70, 78%, 70%)
CMYKcmyk(12.4%, 0%, 77.5%, 30.2%)
CIE-LABlab(68.80, -25.01, 62.55)
CIE-LCHlch(68.80, 67.37, 111.80°)
OKLaboklab(72.25% -0.075 0.1372)
OKLCHoklch(72.25% 0.156 118.7)
XYZxyz(30.0144, 39.0622, 7.9657)
Luminance0.3906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CB228 #3E28B2
analogous
#B28328 #9CB228 #57B228
triadic
#9CB228 #289CB2 #B2289C
tetradic
#9CB228 #28B283 #3E28B2 #B22857
square
#9CB228 #28B283 #3E28B2 #B22857
split-complementary
#9CB228 #2857B2 #8328B2
monochromatic
#444E12 #70801D #9CB228 #BDD543 #CFE075

Accessibility & contrast

On white

2.38
#9CB228 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.81
#9CB228 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CB228
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CB228#FFFFFF#000000##000000
##9CB2281.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9cb228;
/* rgb */ color: rgb(156, 178, 40);
/* oklch */ color: oklch(72.2% 0.156 118.7);
Tailwind
colors: {
  custom: {
    50: '#bdc96e',
    500: '#9cb228',
    950: '#000000',
  },
}
SCSS
$custom: #9cb228;
$custom-light: #bdc96e;
$custom-dark: #000000;
JSON
{
  "hex": "#9cb228",
  "rgb": {
    "r": 156,
    "g": 178,
    "b": 40
  },
  "hsl": {
    "h": 69.565,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.72246,
    "c": 0.1564,
    "h": 118.7
  },
  "luminance": 0.39062
}

Semantic roles & 50–950 ramp

primary
#9CB228
secondary
#7D6FC7
accent
#41E65C
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#121308
muted
#81827B

Preview Lab

Preview with #9CB228

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

Preview Lab → · Contrast checker → · Palette generator →

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