#9F8318#9F8318

#9F8318 is a mid, moderate yellow. Relative luminance 0.237; OKLCH L 61.9% C 0.120 H 92.7°. Best body text is #000000 at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#9F8318
RGBrgb(159, 131, 24)
HSLhsl(48, 74%, 36%)
HSVhsv(48, 85%, 62%)
CMYKcmyk(0%, 17.6%, 84.9%, 37.6%)
CIE-LABlab(55.76, 0.38, 55.91)
CIE-LCHlch(55.76, 55.91, 89.61°)
OKLaboklab(61.88% -0.0056 0.1198)
OKLCHoklch(61.88% 0.12 92.7)
XYZxyz(22.5806, 23.6709, 4.2436)
Luminance0.2367 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8318 #18349F
analogous
#9F4018 #9F8318 #779F18
triadic
#9F8318 #189F83 #83189F
tetradic
#9F8318 #189F40 #18349F #9F1877
square
#9F8318 #189F40 #18349F #9F1877
split-complementary
#9F8318 #18779F #40189F
monochromatic
#352B08 #6A5710 #9F8318 #D4AF20 #E4C54D

Accessibility & contrast

On white

3.66
#9F8318 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.73
#9F8318 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8318
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8318#FFFFFF#000000##000000
##9F83181.003.665.735.73
#FFFFFF3.661.0021.0021.00
#0000005.7321.001.001.00
##0000005.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#998920
Tritanopia (blue-blind)
#AD7770
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8318;
/* rgb */ color: rgb(159, 131, 24);
/* oklch */ color: oklch(61.9% 0.120 92.7);
Tailwind
colors: {
  custom: {
    50: '#c0a661',
    500: '#9f8318',
    950: '#000000',
  },
}
SCSS
$custom: #9f8318;
$custom-light: #c0a661;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8318",
  "rgb": {
    "r": 159,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 47.556,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6188,
    "c": 0.11989,
    "h": 92.7
  },
  "luminance": 0.23669
}

Semantic roles & 50–950 ramp

primary
#9F8318
secondary
#4D66C6
accent
#5EF037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8318

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

Preview Lab → · Contrast checker → · Palette generator →

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