#9CB227#9CB227

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

Color values

HEX#9CB227
RGBrgb(156, 178, 39)
HSLhsl(69, 64%, 43%)
HSVhsv(69, 78%, 70%)
CMYKcmyk(12.4%, 0%, 78.1%, 30.2%)
CIE-LABlab(68.79, -25.06, 62.86)
CIE-LCHlch(68.79, 67.67, 111.73°)
OKLaboklab(72.24% -0.0752 0.1377)
OKLCHoklch(72.24% 0.157 118.6)
XYZxyz(29.9976, 39.0554, 7.8772)
Luminance0.3906 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CB227 #3D27B2
analogous
#B28227 #9CB227 #57B227
triadic
#9CB227 #279CB2 #B2279C
tetradic
#9CB227 #27B282 #3D27B2 #B22757
square
#9CB227 #27B282 #3D27B2 #B22757
split-complementary
#9CB227 #2757B2 #8227B2
monochromatic
#444E11 #70801C #9CB227 #BED541 #CFE073

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9CB227#FFFFFF#000000##000000
##9CB2271.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)
#BCA834
Tritanopia (blue-blind)
#A6A898
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #9cb227;
/* rgb */ color: rgb(156, 178, 39);
/* oklch */ color: oklch(72.2% 0.157 118.6);
Tailwind
colors: {
  custom: {
    50: '#bdc96d',
    500: '#9cb227',
    950: '#000000',
  },
}
SCSS
$custom: #9cb227;
$custom-light: #bdc96d;
$custom-dark: #000000;
JSON
{
  "hex": "#9cb227",
  "rgb": {
    "r": 156,
    "g": 178,
    "b": 39
  },
  "hsl": {
    "h": 69.496,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.72241,
    "c": 0.1569,
    "h": 118.6
  },
  "luminance": 0.39055
}

Semantic roles & 50–950 ramp

primary
#9CB227
secondary
#7C6DC8
accent
#41E75B
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#121308
muted
#81827B

Preview Lab

Preview with #9CB227

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

Preview Lab → · Contrast checker → · Palette generator →

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