#9FAF2C#9FAF2C

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

Color values

HEX#9FAF2C
RGBrgb(159, 175, 44)
HSLhsl(67, 60%, 43%)
HSVhsv(67, 75%, 69%)
CMYKcmyk(9.1%, 0%, 74.9%, 31.4%)
CIE-LABlab(68.18, -22.09, 60.77)
CIE-LCHlch(68.18, 64.65, 109.97°)
OKLaboklab(71.81% -0.0668 0.1341)
OKLCHoklch(71.81% 0.15 116.5)
XYZxyz(30.0834, 38.2131, 8.1735)
Luminance0.3821 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF2C #3C2CAF
analogous
#AF7D2C #9FAF2C #5EAF2C
triadic
#9FAF2C #2C9FAF #AF2C9F
tetradic
#9FAF2C #2CAF7D #3C2CAF #AF2C5E
square
#9FAF2C #2CAF7D #3C2CAF #AF2C5E
split-complementary
#9FAF2C #2C5EAF #7D2CAF
monochromatic
#464D13 #737E20 #9FAF2C #C0D147 #D1DD78

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FAF2C#FFFFFF#000000##000000
##9FAF2C1.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)
#BBA60E
Deuteranopia (green-blind)
#BAA737
Tritanopia (blue-blind)
#A9A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf2c;
/* rgb */ color: rgb(159, 175, 44);
/* oklch */ color: oklch(71.8% 0.150 116.5);
Tailwind
colors: {
  custom: {
    50: '#bfc66f',
    500: '#9faf2c',
    950: '#000000',
  },
}
SCSS
$custom: #9faf2c;
$custom-light: #bfc66f;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf2c",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 44
  },
  "hsl": {
    "h": 67.328,
    "s": 59.817,
    "l": 42.941
  },
  "oklch": {
    "l": 0.71811,
    "c": 0.14976,
    "h": 116.5
  },
  "luminance": 0.38213
}

Semantic roles & 50–950 ramp

primary
#9FAF2C
secondary
#7C72C5
accent
#45E358
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131308
muted
#82827B

Preview Lab

Preview with #9FAF2C

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

Preview Lab → · Contrast checker → · Palette generator →

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