#9F8815#9F8815

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

Color values

HEX#9F8815
RGBrgb(159, 136, 21)
HSLhsl(50, 77%, 35%)
HSVhsv(50, 87%, 62%)
CMYKcmyk(0%, 14.5%, 86.8%, 37.6%)
CIE-LABlab(57.11, -2.47, 57.85)
CIE-LCHlch(57.11, 57.90, 92.45°)
OKLaboklab(62.95% -0.0139 0.1234)
OKLCHoklch(62.95% 0.124 96.4)
XYZxyz(23.2389, 25.0347, 4.3175)
Luminance0.2503 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8815 #152C9F
analogous
#9F4315 #9F8815 #719F15
triadic
#9F8815 #159F88 #88159F
tetradic
#9F8815 #159F43 #152C9F #9F1571
square
#9F8815 #159F43 #152C9F #9F1571
split-complementary
#9F8815 #15719F #43159F
monochromatic
#332C07 #695A0E #9F8815 #D5B61C #E7CC48

Accessibility & contrast

On white

3.50
#9F8815 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8815#FFFFFF#000000##000000
##9F88151.003.506.016.01
#FFFFFF3.501.0021.0021.00
#0000006.0121.001.001.00
##0000006.0121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #9f8815;
/* rgb */ color: rgb(159, 136, 21);
/* oklch */ color: oklch(62.9% 0.124 96.4);
Tailwind
colors: {
  custom: {
    50: '#c0aa60',
    500: '#9f8815',
    950: '#000000',
  },
}
SCSS
$custom: #9f8815;
$custom-light: #c0aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8815",
  "rgb": {
    "r": 159,
    "g": 136,
    "b": 21
  },
  "hsl": {
    "h": 50,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62946,
    "c": 0.1242,
    "h": 96.4
  },
  "luminance": 0.25033
}

Semantic roles & 50–950 ramp

primary
#9F8815
secondary
#485DC8
accent
#54F335
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8815

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

Preview Lab → · Contrast checker → · Palette generator →

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