#9CB421#9CB421

#9CB421 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 72.7% C 0.162 H 119.2°. Best body text is #000000 at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#9CB421
RGBrgb(156, 180, 33)
HSLhsl(70, 69%, 42%)
HSVhsv(70, 82%, 71%)
CMYKcmyk(13.3%, 0%, 81.7%, 29.4%)
CIE-LABlab(69.34, -26.26, 65.05)
CIE-LCHlch(69.34, 70.15, 111.98°)
OKLaboklab(72.68% -0.079 0.1414)
OKLCHoklch(72.68% 0.162 119.2)
XYZxyz(30.3068, 39.8204, 7.5281)
Luminance0.3982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9CB421 #3921B4
analogous
#B48321 #9CB421 #53B421
triadic
#9CB421 #219CB4 #B4219C
tetradic
#9CB421 #21B483 #3921B4 #B42153
square
#9CB421 #21B483 #3921B4 #B42153
split-complementary
#9CB421 #2153B4 #8321B4
monochromatic
#424D0E #6F8018 #9CB421 #C0DA38 #D0E46B

Accessibility & contrast

On white

2.34
#9CB421 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.96
#9CB421 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9CB421
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9CB421#FFFFFF#000000##000000
##9CB4211.002.348.968.96
#FFFFFF2.341.0021.0021.00
#0000008.9621.001.001.00
##0000008.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0A900
Deuteranopia (green-blind)
#BDAA31
Tritanopia (blue-blind)
#A6AA9A
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9cb421;
/* rgb */ color: rgb(156, 180, 33);
/* oklch */ color: oklch(72.7% 0.162 119.2);
Tailwind
colors: {
  custom: {
    50: '#bdca6b',
    500: '#9cb421',
    950: '#000000',
  },
}
SCSS
$custom: #9cb421;
$custom-light: #bdca6b;
$custom-dark: #000000;
JSON
{
  "hex": "#9cb421",
  "rgb": {
    "r": 156,
    "g": 180,
    "b": 33
  },
  "hsl": {
    "h": 69.796,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.72676,
    "c": 0.16191,
    "h": 119.2
  },
  "luminance": 0.3982
}

Semantic roles & 50–950 ramp

primary
#9CB421
secondary
#7767CA
accent
#3CEC59
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9CB421

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

Preview Lab → · Contrast checker → · Palette generator →

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