#9DAC1F#9DAC1F

#9DAC1F is a light, vivid yellow. Relative luminance 0.368; OKLCH L 70.9% C 0.154 H 116.0°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#9DAC1F
RGBrgb(157, 172, 31)
HSLhsl(66, 69%, 40%)
HSVhsv(66, 82%, 67%)
CMYKcmyk(8.7%, 0%, 82%, 32.5%)
CIE-LABlab(67.11, -21.98, 63.66)
CIE-LCHlch(67.11, 67.35, 109.04°)
OKLaboklab(70.89% -0.0674 0.138)
OKLCHoklch(70.89% 0.154 116)
XYZxyz(28.9053, 36.7725, 6.8712)
Luminance0.3677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9DAC1F #2E1FAC
analogous
#AC751F #9DAC1F #57AC1F
triadic
#9DAC1F #1F9DAC #AC1F9D
tetradic
#9DAC1F #1FAC75 #2E1FAC #AC1F57
square
#9DAC1F #1FAC75 #2E1FAC #AC1F57
split-complementary
#9DAC1F #1F57AC #751FAC
monochromatic
#3E440C #6E7816 #9DAC1F #C7D92F #D5E363

Accessibility & contrast

On white

2.51
#9DAC1F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#9DAC1F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9DAC1F
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9DAC1F#FFFFFF#000000##000000
##9DAC1F1.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A300
Deuteranopia (green-blind)
#B7A42E
Tritanopia (blue-blind)
#A8A293
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #9dac1f;
/* rgb */ color: rgb(157, 172, 31);
/* oklch */ color: oklch(70.9% 0.154 116.0);
Tailwind
colors: {
  custom: {
    50: '#bec469',
    500: '#9dac1f',
    950: '#000000',
  },
}
SCSS
$custom: #9dac1f;
$custom-light: #bec469;
$custom-dark: #000000;
JSON
{
  "hex": "#9dac1f",
  "rgb": {
    "r": 157,
    "g": 172,
    "b": 31
  },
  "hsl": {
    "h": 66.383,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.70893,
    "c": 0.15357,
    "h": 116
  },
  "luminance": 0.36772
}

Semantic roles & 50–950 ramp

primary
#9DAC1F
secondary
#6A5FC8
accent
#3CEC4E
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131207
muted
#82817A

Preview Lab

Preview with #9DAC1F

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

Preview Lab → · Contrast checker → · Palette generator →

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