#9F8118#9F8118

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

Color values

HEX#9F8118
RGBrgb(159, 129, 24)
HSLhsl(47, 74%, 36%)
HSVhsv(47, 85%, 62%)
CMYKcmyk(0%, 18.9%, 84.9%, 37.6%)
CIE-LABlab(55.22, 1.49, 55.45)
CIE-LCHlch(55.22, 55.47, 88.46°)
OKLaboklab(61.45% -0.0025 0.1188)
OKLCHoklch(61.45% 0.119 91.2)
XYZxyz(22.3146, 23.1388, 4.1549)
Luminance0.2314 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8118 #18369F
analogous
#9F3E18 #9F8118 #799F18
triadic
#9F8118 #189F81 #81189F
tetradic
#9F8118 #189F3E #18369F #9F1879
square
#9F8118 #189F3E #18369F #9F1879
split-complementary
#9F8118 #18799F #3E189F
monochromatic
#352B08 #6A5610 #9F8118 #D4AC20 #E4C34D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8118#FFFFFF#000000##000000
##9F81181.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)
#988820
Tritanopia (blue-blind)
#AD756E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8118;
/* rgb */ color: rgb(159, 129, 24);
/* oklch */ color: oklch(61.5% 0.119 91.2);
Tailwind
colors: {
  custom: {
    50: '#c0a561',
    500: '#9f8118',
    950: '#000000',
  },
}
SCSS
$custom: #9f8118;
$custom-light: #c0a561;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8118",
  "rgb": {
    "r": 159,
    "g": 129,
    "b": 24
  },
  "hsl": {
    "h": 46.667,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61453,
    "c": 0.11879,
    "h": 91.2
  },
  "luminance": 0.23137
}

Semantic roles & 50–950 ramp

primary
#9F8118
secondary
#4D68C6
accent
#60F037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8118

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

Preview Lab → · Contrast checker → · Palette generator →

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