#9FAF27#9FAF27

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

Color values

HEX#9FAF27
RGBrgb(159, 175, 39)
HSLhsl(67, 64%, 42%)
HSVhsv(67, 78%, 69%)
CMYKcmyk(9.1%, 0%, 77.7%, 31.4%)
CIE-LABlab(68.15, -22.31, 62.35)
CIE-LCHlch(68.15, 66.22, 109.69°)
OKLaboklab(71.78% -0.0678 0.1365)
OKLCHoklch(71.78% 0.152 116.4)
XYZxyz(29.9951, 38.1778, 7.7080)
Luminance0.3818 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF27 #3727AF
analogous
#AF7B27 #9FAF27 #5BAF27
triadic
#9FAF27 #279FAF #AF279F
tetradic
#9FAF27 #27AF7B #3727AF #AF275B
square
#9FAF27 #27AF7B #3727AF #AF275B
split-complementary
#9FAF27 #275BAF #7B27AF
monochromatic
#444B11 #727D1C #9FAF27 #C3D43F #D2DF71

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FAF27#FFFFFF#000000##000000
##9FAF271.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)
#BBA500
Deuteranopia (green-blind)
#BAA734
Tritanopia (blue-blind)
#A9A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf27;
/* rgb */ color: rgb(159, 175, 39);
/* oklch */ color: oklch(71.8% 0.152 116.4);
Tailwind
colors: {
  custom: {
    50: '#bfc66d',
    500: '#9faf27',
    950: '#000000',
  },
}
SCSS
$custom: #9faf27;
$custom-light: #bfc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf27",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 39
  },
  "hsl": {
    "h": 67.059,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.71782,
    "c": 0.15244,
    "h": 116.4
  },
  "luminance": 0.38177
}

Semantic roles & 50–950 ramp

primary
#9FAF27
secondary
#766BC6
accent
#41E755
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #9FAF27

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

Preview Lab → · Contrast checker → · Palette generator →

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