#9DB31C#9DB31C

#9DB31C is a light, vivid yellow. Relative luminance 0.395; OKLCH L 72.5% C 0.162 H 118.4°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#9DB31C
RGBrgb(157, 179, 28)
HSLhsl(69, 73%, 41%)
HSVhsv(69, 84%, 70%)
CMYKcmyk(12.3%, 0%, 84.4%, 29.8%)
CIE-LABlab(69.11, -25.52, 66.13)
CIE-LCHlch(69.11, 70.88, 111.10°)
OKLaboklab(72.5% -0.0773 0.1428)
OKLCHoklch(72.5% 0.162 118.4)
XYZxyz(30.2351, 39.4924, 7.1284)
Luminance0.3949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DB31C #321CB3
analogous
#B37E1C #9DB31C #51B31C
triadic
#9DB31C #1C9DB3 #B31C9D
tetradic
#9DB31C #1CB37E #321CB3 #B31C51
square
#9DB31C #1CB37E #321CB3 #B31C51
split-complementary
#9DB31C #1C51B3 #7E1CB3
monochromatic
#40490B #6F7E14 #9DB31C #C5DE2E #D3E763

Accessibility & contrast

On white

2.36
#9DB31C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#9DB31C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DB31C
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DB31C#FFFFFF#000000##000000
##9DB31C1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#BFA900
Deuteranopia (green-blind)
#BDA92D
Tritanopia (blue-blind)
#A7A999
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #9db31c;
/* rgb */ color: rgb(157, 179, 28);
/* oklch */ color: oklch(72.5% 0.162 118.4);
Tailwind
colors: {
  custom: {
    50: '#bec969',
    500: '#9db31c',
    950: '#000000',
  },
}
SCSS
$custom: #9db31c;
$custom-light: #bec969;
$custom-dark: #000000;
JSON
{
  "hex": "#9db31c",
  "rgb": {
    "r": 157,
    "g": 179,
    "b": 28
  },
  "hsl": {
    "h": 68.742,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.72499,
    "c": 0.16238,
    "h": 118.4
  },
  "luminance": 0.39492
}

Semantic roles & 50–950 ramp

primary
#9DB31C
secondary
#6F5FCB
accent
#38F053
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9DB31C

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

Preview Lab → · Contrast checker → · Palette generator →

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