#9F8715#9F8715

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

Color values

HEX#9F8715
RGBrgb(159, 135, 21)
HSLhsl(50, 77%, 35%)
HSVhsv(50, 87%, 62%)
CMYKcmyk(0%, 15.1%, 86.8%, 37.6%)
CIE-LABlab(56.84, -1.92, 57.63)
CIE-LCHlch(56.84, 57.66, 91.91°)
OKLaboklab(62.73% -0.0124 0.1229)
OKLCHoklch(62.73% 0.124 95.8)
XYZxyz(23.0987, 24.7544, 4.2707)
Luminance0.2475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8715 #152D9F
analogous
#9F4215 #9F8715 #729F15
triadic
#9F8715 #159F87 #87159F
tetradic
#9F8715 #159F42 #152D9F #9F1572
square
#9F8715 #159F42 #152D9F #9F1572
split-complementary
#9F8715 #15729F #42159F
monochromatic
#332B07 #69590E #9F8715 #D5B51C #E7CB48

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8715#FFFFFF#000000##000000
##9F87151.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)
#9C8C1F
Tritanopia (blue-blind)
#AD7B73
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #9f8715;
/* rgb */ color: rgb(159, 135, 21);
/* oklch */ color: oklch(62.7% 0.124 95.8);
Tailwind
colors: {
  custom: {
    50: '#c0a960',
    500: '#9f8715',
    950: '#000000',
  },
}
SCSS
$custom: #9f8715;
$custom-light: #c0a960;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8715",
  "rgb": {
    "r": 159,
    "g": 135,
    "b": 21
  },
  "hsl": {
    "h": 49.565,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.62729,
    "c": 0.12354,
    "h": 95.8
  },
  "luminance": 0.24753
}

Semantic roles & 50–950 ramp

primary
#9F8715
secondary
#485EC8
accent
#56F335
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8715

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

Preview Lab → · Contrast checker → · Palette generator →

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