#9F8315#9F8315

#9F8315 is a mid, vivid yellow. Relative luminance 0.237; OKLCH L 61.9% C 0.121 H 92.9°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9F8315
RGBrgb(159, 131, 21)
HSLhsl(48, 77%, 35%)
HSVhsv(48, 87%, 62%)
CMYKcmyk(0%, 17.6%, 86.8%, 37.6%)
CIE-LABlab(55.74, 0.29, 56.73)
CIE-LCHlch(55.74, 56.73, 89.70°)
OKLaboklab(61.87% -0.0061 0.1209)
OKLCHoklch(61.87% 0.121 92.9)
XYZxyz(22.5511, 23.6591, 4.0882)
Luminance0.2366 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8315 #15319F
analogous
#9F3E15 #9F8315 #769F15
triadic
#9F8315 #159F83 #83159F
tetradic
#9F8315 #159F3E #15319F #9F1576
square
#9F8315 #159F3E #15319F #9F1576
split-complementary
#9F8315 #15769F #3E159F
monochromatic
#332A07 #69560E #9F8315 #D5B01C #E7C648

Accessibility & contrast

On white

3.66
#9F8315 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#9F8315 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8315
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8315#FFFFFF#000000##000000
##9F83151.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#9A891E
Tritanopia (blue-blind)
#AD7770
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8315;
/* rgb */ color: rgb(159, 131, 21);
/* oklch */ color: oklch(61.9% 0.121 92.9);
Tailwind
colors: {
  custom: {
    50: '#c0a660',
    500: '#9f8315',
    950: '#000000',
  },
}
SCSS
$custom: #9f8315;
$custom-light: #c0a660;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8315",
  "rgb": {
    "r": 159,
    "g": 131,
    "b": 21
  },
  "hsl": {
    "h": 47.826,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61867,
    "c": 0.12108,
    "h": 92.9
  },
  "luminance": 0.23658
}

Semantic roles & 50–950 ramp

primary
#9F8315
secondary
#4862C8
accent
#5BF335
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8315

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

Preview Lab → · Contrast checker → · Palette generator →

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