#9FA12D#9FA12D

#9FA12D is a light, vivid yellow. Relative luminance 0.331; OKLCH L 68.6% C 0.134 H 110.4°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#9FA12D
RGBrgb(159, 161, 45)
HSLhsl(61, 56%, 40%)
HSVhsv(61, 72%, 63%)
CMYKcmyk(1.2%, 0%, 72%, 36.9%)
CIE-LABlab(64.20, -14.93, 56.62)
CIE-LCHlch(64.20, 58.55, 104.77°)
OKLaboklab(68.63% -0.0468 0.1255)
OKLCHoklch(68.63% 0.134 110.4)
XYZxyz(27.5175, 33.0509, 7.4120)
Luminance0.3305 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FA12D #2F2DA1
analogous
#A1692D #9FA12D #65A12D
triadic
#9FA12D #2D9FA1 #A12D9F
tetradic
#9FA12D #2DA169 #2F2DA1 #A12D65
square
#9FA12D #2DA169 #2F2DA1 #A12D65
split-complementary
#9FA12D #2D65A1 #692DA1
monochromatic
#414112 #707120 #9FA12D #C8CA41 #D6D771

Accessibility & contrast

On white

2.76
#9FA12D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#9FA12D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FA12D
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FA12D#FFFFFF#000000##000000
##9FA12D1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#AE9A18
Deuteranopia (green-blind)
#AF9D36
Tritanopia (blue-blind)
#AA978A
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #9fa12d;
/* rgb */ color: rgb(159, 161, 45);
/* oklch */ color: oklch(68.6% 0.134 110.4);
Tailwind
colors: {
  custom: {
    50: '#bfbc6e',
    500: '#9fa12d',
    950: '#000000',
  },
}
SCSS
$custom: #9fa12d;
$custom-light: #bfbc6e;
$custom-dark: #000000;
JSON
{
  "hex": "#9fa12d",
  "rgb": {
    "r": 159,
    "g": 161,
    "b": 45
  },
  "hsl": {
    "h": 61.034,
    "s": 56.311,
    "l": 40.392
  },
  "oklch": {
    "l": 0.68627,
    "c": 0.1339,
    "h": 110.4
  },
  "luminance": 0.3305
}

Semantic roles & 50–950 ramp

primary
#9FA12D
secondary
#6D6BBF
accent
#48E04B
background
#FCFBF6
surface
#F8F6EC
border
#D1D0C7
text
#131208
muted
#82817B

Preview Lab

Preview with #9FA12D

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

Preview Lab → · Contrast checker → · Palette generator →

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