#9F8415#9F8415

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

Color values

HEX#9F8415
RGBrgb(159, 132, 21)
HSLhsl(48, 77%, 35%)
HSVhsv(48, 87%, 62%)
CMYKcmyk(0%, 17%, 86.8%, 37.6%)
CIE-LABlab(56.02, -0.26, 56.95)
CIE-LCHlch(56.02, 56.95, 90.26°)
OKLaboklab(62.08% -0.0077 0.1214)
OKLCHoklch(62.08% 0.122 93.6)
XYZxyz(22.6861, 23.9290, 4.1332)
Luminance0.2393 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8415 #15309F
analogous
#9F3F15 #9F8415 #759F15
triadic
#9F8415 #159F84 #84159F
tetradic
#9F8415 #159F3F #15309F #9F1575
square
#9F8415 #159F3F #15309F #9F1575
split-complementary
#9F8415 #15759F #3F159F
monochromatic
#332A07 #69570E #9F8415 #D5B11C #E7C848

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8415#FFFFFF#000000##000000
##9F84151.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)
#948200
Deuteranopia (green-blind)
#9A8A1E
Tritanopia (blue-blind)
#AD7870
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8415;
/* rgb */ color: rgb(159, 132, 21);
/* oklch */ color: oklch(62.1% 0.122 93.6);
Tailwind
colors: {
  custom: {
    50: '#c0a760',
    500: '#9f8415',
    950: '#000000',
  },
}
SCSS
$custom: #9f8415;
$custom-light: #c0a760;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8415",
  "rgb": {
    "r": 159,
    "g": 132,
    "b": 21
  },
  "hsl": {
    "h": 48.261,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62082,
    "c": 0.12167,
    "h": 93.6
  },
  "luminance": 0.23928
}

Semantic roles & 50–950 ramp

primary
#9F8415
secondary
#4861C8
accent
#5AF335
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8415

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

Preview Lab → · Contrast checker → · Palette generator →

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