#9F8117#9F8117

#9F8117 is a mid, moderate yellow. Relative luminance 0.231; OKLCH L 61.4% C 0.119 H 91.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#9F8117
RGBrgb(159, 129, 23)
HSLhsl(47, 75%, 36%)
HSVhsv(47, 86%, 62%)
CMYKcmyk(0%, 18.9%, 85.5%, 37.6%)
CIE-LABlab(55.21, 1.46, 55.74)
CIE-LCHlch(55.21, 55.76, 88.50°)
OKLaboklab(61.45% -0.0026 0.1192)
OKLCHoklch(61.45% 0.119 91.3)
XYZxyz(22.3044, 23.1348, 4.1011)
Luminance0.2313 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8117 #17359F
analogous
#9F3D17 #9F8117 #799F17
triadic
#9F8117 #179F81 #81179F
tetradic
#9F8117 #179F3D #17359F #9F1779
square
#9F8117 #179F3D #17359F #9F1779
split-complementary
#9F8117 #17799F #3D179F
monochromatic
#342A08 #6A560F #9F8117 #D4AC1F #E5C34B

Accessibility & contrast

On white

3.73
#9F8117 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#9F8117 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8117
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8117#FFFFFF#000000##000000
##9F81171.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#98881F
Tritanopia (blue-blind)
#AD756E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8117;
/* rgb */ color: rgb(159, 129, 23);
/* oklch */ color: oklch(61.4% 0.119 91.3);
Tailwind
colors: {
  custom: {
    50: '#c0a560',
    500: '#9f8117',
    950: '#000000',
  },
}
SCSS
$custom: #9f8117;
$custom-light: #c0a560;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8117",
  "rgb": {
    "r": 159,
    "g": 129,
    "b": 23
  },
  "hsl": {
    "h": 46.765,
    "s": 74.725,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61448,
    "c": 0.1192,
    "h": 91.3
  },
  "luminance": 0.23133
}

Semantic roles & 50–950 ramp

primary
#9F8117
secondary
#4B66C7
accent
#60F136
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8117

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

Preview Lab → · Contrast checker → · Palette generator →

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