#9F8218#9F8218

#9F8218 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.7% C 0.119 H 92.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#9F8218
RGBrgb(159, 130, 24)
HSLhsl(47, 74%, 36%)
HSVhsv(47, 85%, 62%)
CMYKcmyk(0%, 18.2%, 84.9%, 37.6%)
CIE-LABlab(55.49, 0.93, 55.68)
CIE-LCHlch(55.49, 55.69, 89.04°)
OKLaboklab(61.67% -0.0041 0.1193)
OKLCHoklch(61.67% 0.119 92)
XYZxyz(22.4469, 23.4036, 4.1990)
Luminance0.2340 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8218 #18359F
analogous
#9F3E18 #9F8218 #789F18
triadic
#9F8218 #189F82 #82189F
tetradic
#9F8218 #189F3E #18359F #9F1878
square
#9F8218 #189F3E #18359F #9F1878
split-complementary
#9F8218 #18789F #3E189F
monochromatic
#352B08 #6A5710 #9F8218 #D4AD20 #E4C44D

Accessibility & contrast

On white

3.70
#9F8218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#9F8218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8218
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8218#FFFFFF#000000##000000
##9F82181.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#998820
Tritanopia (blue-blind)
#AD766F
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #9f8218;
/* rgb */ color: rgb(159, 130, 24);
/* oklch */ color: oklch(61.7% 0.119 92.0);
Tailwind
colors: {
  custom: {
    50: '#c0a561',
    500: '#9f8218',
    950: '#000000',
  },
}
SCSS
$custom: #9f8218;
$custom-light: #c0a561;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8218",
  "rgb": {
    "r": 159,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 47.111,
    "s": 73.77,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61666,
    "c": 0.11933,
    "h": 92
  },
  "luminance": 0.23402
}

Semantic roles & 50–950 ramp

primary
#9F8218
secondary
#4D67C6
accent
#5FF037
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F05
muted
#827F7A

Preview Lab

Preview with #9F8218

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

Preview Lab → · Contrast checker → · Palette generator →

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