#9FA42D#9FA42D

#9FA42D is a light, vivid yellow. Relative luminance 0.341; OKLCH L 69.3% C 0.137 H 111.9°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#9FA42D
RGBrgb(159, 164, 45)
HSLhsl(63, 57%, 41%)
HSVhsv(63, 73%, 64%)
CMYKcmyk(3%, 0%, 72.6%, 35.7%)
CIE-LABlab(65.05, -16.48, 57.44)
CIE-LCHlch(65.05, 59.75, 106.01°)
OKLaboklab(69.31% -0.0511 0.1272)
OKLCHoklch(69.31% 0.137 111.9)
XYZxyz(28.0481, 34.1120, 7.5889)
Luminance0.3411 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA42D #322DA4
analogous
#A46D2D #9FA42D #63A42D
triadic
#9FA42D #2D9FA4 #A42D9F
tetradic
#9FA42D #2DA46D #322DA4 #A42D63
square
#9FA42D #2DA46D #322DA4 #A42D63
split-complementary
#9FA42D #2D63A4 #6D2DA4
monochromatic
#424413 #707420 #9FA42D #C6CB43 #D4D973

Accessibility & contrast

On white

2.68
#9FA42D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#9FA42D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA42D
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA42D#FFFFFF#000000##000000
##9FA42D1.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19C17
Deuteranopia (green-blind)
#B19F36
Tritanopia (blue-blind)
#AA9A8D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #9fa42d;
/* rgb */ color: rgb(159, 164, 45);
/* oklch */ color: oklch(69.3% 0.137 111.9);
Tailwind
colors: {
  custom: {
    50: '#bfbe6f',
    500: '#9fa42d',
    950: '#000000',
  },
}
SCSS
$custom: #9fa42d;
$custom-light: #bfbe6f;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa42d",
  "rgb": {
    "r": 159,
    "g": 164,
    "b": 45
  },
  "hsl": {
    "h": 62.521,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.69306,
    "c": 0.13707,
    "h": 111.9
  },
  "luminance": 0.34111
}

Semantic roles & 50–950 ramp

primary
#9FA42D
secondary
#706DC0
accent
#48E04E
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA42D

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

Preview Lab → · Contrast checker → · Palette generator →

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