#9FAF26#9FAF26

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

Color values

HEX#9FAF26
RGBrgb(159, 175, 38)
HSLhsl(67, 64%, 42%)
HSVhsv(67, 78%, 69%)
CMYKcmyk(9.1%, 0%, 78.3%, 31.4%)
CIE-LABlab(68.15, -22.35, 62.65)
CIE-LCHlch(68.15, 66.52, 109.63°)
OKLaboklab(71.78% -0.068 0.137)
OKLCHoklch(71.78% 0.153 116.4)
XYZxyz(29.9787, 38.1712, 7.6219)
Luminance0.3817 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9FAF26 #3626AF
analogous
#AF7B26 #9FAF26 #5BAF26
triadic
#9FAF26 #269FAF #AF269F
tetradic
#9FAF26 #26AF7B #3626AF #AF265B
square
#9FAF26 #26AF7B #3626AF #AF265B
split-complementary
#9FAF26 #265BAF #7B26AF
monochromatic
#444A10 #717D1B #9FAF26 #C3D53D #D3E070

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9FAF26#FFFFFF#000000##000000
##9FAF261.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)
#BAA733
Tritanopia (blue-blind)
#A9A596
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #9faf26;
/* rgb */ color: rgb(159, 175, 38);
/* oklch */ color: oklch(71.8% 0.153 116.4);
Tailwind
colors: {
  custom: {
    50: '#bfc66d',
    500: '#9faf26',
    950: '#000000',
  },
}
SCSS
$custom: #9faf26;
$custom-light: #bfc66d;
$custom-dark: #000000;
JSON
{
  "hex": "#9faf26",
  "rgb": {
    "r": 159,
    "g": 175,
    "b": 38
  },
  "hsl": {
    "h": 67.007,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.71776,
    "c": 0.15295,
    "h": 116.4
  },
  "luminance": 0.38171
}

Semantic roles & 50–950 ramp

primary
#9FAF26
secondary
#756AC7
accent
#40E754
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A

Preview Lab

Preview with #9FAF26

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

Preview Lab → · Contrast checker → · Palette generator →

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