#9F8718#9F8718

#9F8718 is a light, vivid yellow. Relative luminance 0.248; OKLCH L 62.7% C 0.122 H 95.6°. Best body text is #000000 at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#9F8718
RGBrgb(159, 135, 24)
HSLhsl(49, 74%, 36%)
HSVhsv(49, 85%, 62%)
CMYKcmyk(0%, 15.1%, 84.9%, 37.6%)
CIE-LABlab(56.85, -1.84, 56.83)
CIE-LCHlch(56.85, 56.86, 91.85°)
OKLaboklab(62.74% -0.0119 0.1218)
OKLCHoklch(62.74% 0.122 95.6)
XYZxyz(23.1282, 24.7662, 4.4261)
Luminance0.2477 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8718 #18309F
analogous
#9F4318 #9F8718 #739F18
triadic
#9F8718 #189F87 #87189F
tetradic
#9F8718 #189F43 #18309F #9F1873
square
#9F8718 #189F43 #18309F #9F1873
split-complementary
#9F8718 #18739F #43189F
monochromatic
#352D08 #6A5A10 #9F8718 #D4B420 #E4C94D

Accessibility & contrast

On white

3.53
#9F8718 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.95
#9F8718 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8718
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8718#FFFFFF#000000##000000
##9F87181.003.535.955.95
#FFFFFF3.531.0021.0021.00
#0000005.9521.001.001.00
##0000005.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#9C8C21
Tritanopia (blue-blind)
#AC7B73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9f8718;
/* rgb */ color: rgb(159, 135, 24);
/* oklch */ color: oklch(62.7% 0.122 95.6);
Tailwind
colors: {
  custom: {
    50: '#c0a961',
    500: '#9f8718',
    950: '#000000',
  },
}
SCSS
$custom: #9f8718;
$custom-light: #c0a961;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8718",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 24
  },
  "hsl": {
    "h": 49.333,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.62742,
    "c": 0.12236,
    "h": 95.6
  },
  "luminance": 0.24765
}

Semantic roles & 50–950 ramp

primary
#9F8718
secondary
#4D62C6
accent
#58F037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8718

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

Preview Lab → · Contrast checker → · Palette generator →

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