#9DB221#9DB221

#9DB221 is a light, vivid yellow. Relative luminance 0.391; OKLCH L 72.3% C 0.159 H 118.2°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#9DB221
RGBrgb(157, 178, 33)
HSLhsl(69, 69%, 41%)
HSVhsv(69, 81%, 70%)
CMYKcmyk(11.8%, 0%, 81.5%, 30.2%)
CIE-LABlab(68.84, -24.87, 64.64)
CIE-LCHlch(68.84, 69.26, 111.04°)
OKLaboklab(72.29% -0.0752 0.1404)
OKLCHoklch(72.29% 0.159 118.2)
XYZxyz(30.1003, 39.1190, 7.4036)
Luminance0.3912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DB221 #3621B2
analogous
#B27F21 #9DB221 #55B221
triadic
#9DB221 #219DB2 #B2219D
tetradic
#9DB221 #21B27F #3621B2 #B22155
square
#9DB221 #21B27F #3621B2 #B22155
split-complementary
#9DB221 #2155B2 #7F21B2
monochromatic
#424B0E #6F7E17 #9DB221 #C2DA36 #D2E36A

Accessibility & contrast

On white

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

On black

8.82
#9DB221 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DB221
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DB221#FFFFFF#000000##000000
##9DB2211.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9db221;
/* rgb */ color: rgb(157, 178, 33);
/* oklch */ color: oklch(72.3% 0.159 118.2);
Tailwind
colors: {
  custom: {
    50: '#bec96b',
    500: '#9db221',
    950: '#000000',
  },
}
SCSS
$custom: #9db221;
$custom-light: #bec96b;
$custom-dark: #000000;
JSON
{
  "hex": "#9db221",
  "rgb": {
    "r": 157,
    "g": 178,
    "b": 33
  },
  "hsl": {
    "h": 68.69,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.72288,
    "c": 0.1593,
    "h": 118.2
  },
  "luminance": 0.39119
}

Semantic roles & 50–950 ramp

primary
#9DB221
secondary
#7466C9
accent
#3CEC56
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9DB221

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

Preview Lab → · Contrast checker → · Palette generator →

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