#9FAF2D#9FAF2D

#9FAF2D is a light, vivid yellow. Relative luminance 0.382; OKLCH L 71.8% C 0.149 H 116.5°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#9FAF2D
RGBrgb(159, 175, 45)
HSLhsl(67, 59%, 43%)
HSVhsv(67, 74%, 69%)
CMYKcmyk(9.1%, 0%, 74.3%, 31.4%)
CIE-LABlab(68.18, -22.04, 60.43)
CIE-LCHlch(68.18, 64.32, 110.04°)
OKLaboklab(71.82% -0.0666 0.1335)
OKLCHoklch(71.82% 0.149 116.5)
XYZxyz(30.1025, 38.2207, 8.2737)
Luminance0.3822 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF2D #3D2DAF
analogous
#AF7E2D #9FAF2D #5EAF2D
triadic
#9FAF2D #2D9FAF #AF2D9F
tetradic
#9FAF2D #2DAF7E #3D2DAF #AF2D5E
square
#9FAF2D #2DAF7E #3D2DAF #AF2D5E
split-complementary
#9FAF2D #2D5EAF #7E2DAF
monochromatic
#474E14 #737E20 #9FAF2D #C0D049 #D1DD7A

Accessibility & contrast

On white

2.43
#9FAF2D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#9FAF2D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF2D
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF2D#FFFFFF#000000##000000
##9FAF2D1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#BBA611
Deuteranopia (green-blind)
#BAA738
Tritanopia (blue-blind)
#A9A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf2d;
/* rgb */ color: rgb(159, 175, 45);
/* oklch */ color: oklch(71.8% 0.149 116.5);
Tailwind
colors: {
  custom: {
    50: '#bfc670',
    500: '#9faf2d',
    950: '#000000',
  },
}
SCSS
$custom: #9faf2d;
$custom-light: #bfc670;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf2d",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 45
  },
  "hsl": {
    "h": 67.385,
    "s": 59.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.71817,
    "c": 0.14919,
    "h": 116.5
  },
  "luminance": 0.3822
}

Semantic roles & 50–950 ramp

primary
#9FAF2D
secondary
#7D73C5
accent
#46E259
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FAF2D

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

Preview Lab → · Contrast checker → · Palette generator →

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