#9F8918#9F8918

#9F8918 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 63.2% C 0.124 H 97.0°. Best body text is #000000 at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#9F8918
RGBrgb(159, 137, 24)
HSLhsl(50, 74%, 36%)
HSVhsv(50, 85%, 62%)
CMYKcmyk(0%, 13.8%, 84.9%, 37.6%)
CIE-LABlab(57.40, -2.94, 57.29)
CIE-LCHlch(57.40, 57.37, 92.94°)
OKLaboklab(63.18% -0.015 0.1228)
OKLCHoklch(63.18% 0.124 97)
XYZxyz(23.4099, 25.3295, 4.5200)
Luminance0.2533 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8918 #182E9F
analogous
#9F4518 #9F8918 #719F18
triadic
#9F8918 #189F89 #89189F
tetradic
#9F8918 #189F45 #182E9F #9F1871
square
#9F8918 #189F45 #182E9F #9F1871
split-complementary
#9F8918 #18719F #45189F
monochromatic
#352D08 #6A5B10 #9F8918 #D4B720 #E4CC4D

Accessibility & contrast

On white

3.46
#9F8918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.07
#9F8918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8918
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8918#FFFFFF#000000##000000
##9F89181.003.466.076.07
#FFFFFF3.461.0021.0021.00
#0000006.0721.001.001.00
##0000006.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#9E8D21
Tritanopia (blue-blind)
#AC7E75
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #9f8918;
/* rgb */ color: rgb(159, 137, 24);
/* oklch */ color: oklch(63.2% 0.124 97.0);
Tailwind
colors: {
  custom: {
    50: '#c0ab62',
    500: '#9f8918',
    950: '#000000',
  },
}
SCSS
$custom: #9f8918;
$custom-light: #c0ab62;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8918",
  "rgb": {
    "r": 159,
    "g": 137,
    "b": 24
  },
  "hsl": {
    "h": 50.222,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.63176,
    "c": 0.12372,
    "h": 97
  },
  "luminance": 0.25328
}

Semantic roles & 50–950 ramp

primary
#9F8918
secondary
#4D60C6
accent
#56F037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#131006
muted
#827F7A

Preview Lab

Preview with #9F8918

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

Preview Lab → · Contrast checker → · Palette generator →

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