#9DAB1C#9DAB1C

#9DAB1C is a light, vivid yellow. Relative luminance 0.364; OKLCH L 70.7% C 0.154 H 115.6°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#9DAB1C
RGBrgb(157, 171, 28)
HSLhsl(66, 72%, 39%)
HSVhsv(66, 84%, 67%)
CMYKcmyk(8.2%, 0%, 83.6%, 32.9%)
CIE-LABlab(66.81, -21.57, 64.17)
CIE-LCHlch(66.81, 67.70, 108.58°)
OKLaboklab(70.65% -0.0665 0.1386)
OKLCHoklch(70.65% 0.154 115.6)
XYZxyz(28.6780, 36.3782, 6.6094)
Luminance0.3638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DAB1C #2A1CAB
analogous
#AB721C #9DAB1C #56AB1C
triadic
#9DAB1C #1C9DAB #AB1C9D
tetradic
#9DAB1C #1CAB72 #2A1CAB #AB1C56
square
#9DAB1C #1CAB72 #2A1CAB #AB1C56
split-complementary
#9DAB1C #1C56AB #721CAB
monochromatic
#3C420B #6D7613 #9DAB1C #CADC28 #D7E45D

Accessibility & contrast

On white

2.54
#9DAB1C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.28
#9DAB1C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DAB1C
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DAB1C#FFFFFF#000000##000000
##9DAB1C1.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B8A200
Deuteranopia (green-blind)
#B7A42C
Tritanopia (blue-blind)
#A8A192
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9dab1c;
/* rgb */ color: rgb(157, 171, 28);
/* oklch */ color: oklch(70.7% 0.154 115.6);
Tailwind
colors: {
  custom: {
    50: '#bec368',
    500: '#9dab1c',
    950: '#000000',
  },
}
SCSS
$custom: #9dab1c;
$custom-light: #bec368;
$custom-dark: #000000;
JSON
{
  "hex": "#9dab1c",
  "rgb": {
    "r": 157,
    "g": 171,
    "b": 28
  },
  "hsl": {
    "h": 65.874,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.7065,
    "c": 0.15371,
    "h": 115.6
  },
  "luminance": 0.36378
}

Semantic roles & 50–950 ramp

primary
#9DAB1C
secondary
#655AC9
accent
#39EF4B
background
#FCFBF6
surface
#F8F7EB
border
#D1D0C6
text
#131207
muted
#82817A

Preview Lab

Preview with #9DAB1C

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

Preview Lab → · Contrast checker → · Palette generator →

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