#9F8418#9F8418

#9F8418 is a light, vivid yellow. Relative luminance 0.239; OKLCH L 62.1% C 0.120 H 93.4°. Best body text is #000000 at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#9F8418
RGBrgb(159, 132, 24)
HSLhsl(48, 74%, 36%)
HSVhsv(48, 85%, 62%)
CMYKcmyk(0%, 17%, 84.9%, 37.6%)
CIE-LABlab(56.03, -0.18, 56.14)
CIE-LCHlch(56.03, 56.14, 90.18°)
OKLaboklab(62.1% -0.0072 0.1203)
OKLCHoklch(62.1% 0.12 93.4)
XYZxyz(22.7156, 23.9408, 4.2886)
Luminance0.2394 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8418 #18339F
analogous
#9F4018 #9F8418 #769F18
triadic
#9F8418 #189F84 #84189F
tetradic
#9F8418 #189F40 #18339F #9F1876
square
#9F8418 #189F40 #18339F #9F1876
split-complementary
#9F8418 #18769F #40189F
monochromatic
#352C08 #6A5810 #9F8418 #D4B020 #E4C64D

Accessibility & contrast

On white

3.63
#9F8418 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.79
#9F8418 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8418
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8418#FFFFFF#000000##000000
##9F84181.003.635.795.79
#FFFFFF3.631.0021.0021.00
#0000005.7921.001.001.00
##0000005.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#938200
Deuteranopia (green-blind)
#9A8A20
Tritanopia (blue-blind)
#AD7871
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8418;
/* rgb */ color: rgb(159, 132, 24);
/* oklch */ color: oklch(62.1% 0.120 93.4);
Tailwind
colors: {
  custom: {
    50: '#c0a761',
    500: '#9f8418',
    950: '#000000',
  },
}
SCSS
$custom: #9f8418;
$custom-light: #c0a761;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8418",
  "rgb": {
    "r": 159,
    "g": 132,
    "b": 24
  },
  "hsl": {
    "h": 48,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62095,
    "c": 0.12049,
    "h": 93.4
  },
  "luminance": 0.23939
}

Semantic roles & 50–950 ramp

primary
#9F8418
secondary
#4D65C6
accent
#5CF037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8418

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

Preview Lab → · Contrast checker → · Palette generator →

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