#9F8818#9F8818

#9F8818 is a light, vivid yellow. Relative luminance 0.250; OKLCH L 63.0% C 0.123 H 96.3°. Best body text is #000000 at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#9F8818
RGBrgb(159, 136, 24)
HSLhsl(50, 74%, 36%)
HSVhsv(50, 85%, 62%)
CMYKcmyk(0%, 14.5%, 84.9%, 37.6%)
CIE-LABlab(57.12, -2.39, 57.06)
CIE-LCHlch(57.12, 57.11, 92.40°)
OKLaboklab(62.96% -0.0135 0.1223)
OKLCHoklch(62.96% 0.123 96.3)
XYZxyz(23.2684, 25.0465, 4.4729)
Luminance0.2505 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8818 #182F9F
analogous
#9F4418 #9F8818 #729F18
triadic
#9F8818 #189F88 #88189F
tetradic
#9F8818 #189F44 #182F9F #9F1872
square
#9F8818 #189F44 #182F9F #9F1872
split-complementary
#9F8818 #18729F #44189F
monochromatic
#352D08 #6A5B10 #9F8818 #D4B520 #E4CA4D

Accessibility & contrast

On white

3.49
#9F8818 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.01
#9F8818 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8818
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8818#FFFFFF#000000##000000
##9F88181.003.496.016.01
#FFFFFF3.491.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#9D8C21
Tritanopia (blue-blind)
#AC7D74
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #9f8818;
/* rgb */ color: rgb(159, 136, 24);
/* oklch */ color: oklch(63.0% 0.123 96.3);
Tailwind
colors: {
  custom: {
    50: '#c0aa62',
    500: '#9f8818',
    950: '#000000',
  },
}
SCSS
$custom: #9f8818;
$custom-light: #c0aa62;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8818",
  "rgb": {
    "r": 159,
    "g": 136,
    "b": 24
  },
  "hsl": {
    "h": 49.778,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62959,
    "c": 0.12303,
    "h": 96.3
  },
  "luminance": 0.25045
}

Semantic roles & 50–950 ramp

primary
#9F8818
secondary
#4D61C6
accent
#57F037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8818

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

Preview Lab → · Contrast checker → · Palette generator →

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