#9F8018#9F8018

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

Color values

HEX#9F8018
RGBrgb(159, 128, 24)
HSLhsl(46, 74%, 36%)
HSVhsv(46, 85%, 62%)
CMYKcmyk(0%, 19.5%, 84.9%, 37.6%)
CIE-LABlab(54.95, 2.05, 55.22)
CIE-LCHlch(54.95, 55.26, 87.88°)
OKLaboklab(61.24% -0.0009 0.1183)
OKLCHoklch(61.24% 0.118 90.4)
XYZxyz(22.1835, 22.8767, 4.1112)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8018 #18379F
analogous
#9F3C18 #9F8018 #7A9F18
triadic
#9F8018 #189F80 #80189F
tetradic
#9F8018 #189F3C #18379F #9F187A
square
#9F8018 #189F3C #18379F #9F187A
split-complementary
#9F8018 #187A9F #3C189F
monochromatic
#352A08 #6A5510 #9F8018 #D4AB20 #E4C24D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##9F8018#FFFFFF#000000##000000
##9F80181.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)
#97871F
Tritanopia (blue-blind)
#AD746D
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #9f8018;
/* rgb */ color: rgb(159, 128, 24);
/* oklch */ color: oklch(61.2% 0.118 90.4);
Tailwind
colors: {
  custom: {
    50: '#c0a460',
    500: '#9f8018',
    950: '#000000',
  },
}
SCSS
$custom: #9f8018;
$custom-light: #c0a460;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8018",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 46.222,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.6124,
    "c": 0.11826,
    "h": 90.4
  },
  "luminance": 0.22875
}

Semantic roles & 50–950 ramp

primary
#9F8018
secondary
#4D69C6
accent
#62F037
background
#FCFAF6
surface
#F8F3EB
border
#D1CDC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8018

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

Preview Lab → · Contrast checker → · Palette generator →

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