#9F8015#9F8015

#9F8015 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.2% C 0.119 H 90.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#9F8015
RGBrgb(159, 128, 21)
HSLhsl(47, 77%, 35%)
HSVhsv(47, 87%, 62%)
CMYKcmyk(0%, 19.5%, 86.8%, 37.6%)
CIE-LABlab(54.93, 1.96, 56.06)
CIE-LCHlch(54.93, 56.09, 87.99°)
OKLaboklab(61.23% -0.0014 0.1195)
OKLCHoklch(61.23% 0.119 90.7)
XYZxyz(22.1540, 22.8649, 3.9558)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8015 #15349F
analogous
#9F3B15 #9F8015 #799F15
triadic
#9F8015 #159F80 #80159F
tetradic
#9F8015 #159F3B #15349F #9F1579
square
#9F8015 #159F3B #15349F #9F1579
split-complementary
#9F8015 #15799F #3B159F
monochromatic
#332907 #69540E #9F8015 #D5AC1C #E7C348

Accessibility & contrast

On white

3.77
#9F8015 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#9F8015 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8015
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8015#FFFFFF#000000##000000
##9F80151.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#97871D
Tritanopia (blue-blind)
#AD746D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9f8015;
/* rgb */ color: rgb(159, 128, 21);
/* oklch */ color: oklch(61.2% 0.119 90.7);
Tailwind
colors: {
  custom: {
    50: '#c0a45f',
    500: '#9f8015',
    950: '#000000',
  },
}
SCSS
$custom: #9f8015;
$custom-light: #c0a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8015",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 21
  },
  "hsl": {
    "h": 46.522,
    "s": 76.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.61227,
    "c": 0.11946,
    "h": 90.7
  },
  "luminance": 0.22863
}

Semantic roles & 50–950 ramp

primary
#9F8015
secondary
#4865C8
accent
#5FF335
background
#FCFAF5
surface
#F8F3EA
border
#D1CDC6
text
#130F05
muted
#827F79

Preview Lab

Preview with #9F8015

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

Preview Lab → · Contrast checker → · Palette generator →

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