#9FAF23#9FAF23

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

Color values

HEX#9FAF23
RGBrgb(159, 175, 35)
HSLhsl(67, 67%, 41%)
HSVhsv(67, 80%, 69%)
CMYKcmyk(9.1%, 0%, 80%, 31.4%)
CIE-LABlab(68.13, -22.47, 63.52)
CIE-LCHlch(68.13, 67.38, 109.48°)
OKLaboklab(71.76% -0.0685 0.1383)
OKLCHoklch(71.76% 0.154 116.4)
XYZxyz(29.9322, 38.1527, 7.3772)
Luminance0.3815 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF23 #3323AF
analogous
#AF7923 #9FAF23 #59AF23
triadic
#9FAF23 #239FAF #AF239F
tetradic
#9FAF23 #23AF79 #3323AF #AF2359
square
#9FAF23 #23AF79 #3323AF #AF2359
split-complementary
#9FAF23 #2359AF #7923AF
monochromatic
#42490F #717C19 #9FAF23 #C5D738 #D4E16B

Accessibility & contrast

On white

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

On black

8.63
#9FAF23 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #9FAF23
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9FAF23#FFFFFF#000000##000000
##9FAF231.002.438.638.63
#FFFFFF2.431.0021.0021.00
#0000008.6321.001.001.00
##0000008.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#BCA500
Deuteranopia (green-blind)
#BAA731
Tritanopia (blue-blind)
#AAA596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf23;
/* rgb */ color: rgb(159, 175, 35);
/* oklch */ color: oklch(71.8% 0.154 116.4);
Tailwind
colors: {
  custom: {
    50: '#bfc66b',
    500: '#9faf23',
    950: '#000000',
  },
}
SCSS
$custom: #9faf23;
$custom-light: #bfc66b;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf23",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 35
  },
  "hsl": {
    "h": 66.857,
    "s": 66.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.71761,
    "c": 0.15437,
    "h": 116.4
  },
  "luminance": 0.38152
}

Semantic roles & 50–950 ramp

primary
#9FAF23
secondary
#7166C7
accent
#3EEA52
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131307
muted
#82827A

Preview Lab

Preview with #9FAF23

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

Preview Lab → · Contrast checker → · Palette generator →

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