#9F8420#9F8420

#9F8420 is a light, moderate yellow. Relative luminance 0.240; OKLCH L 62.1% C 0.117 H 92.8°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#9F8420
RGBrgb(159, 132, 32)
HSLhsl(47, 66%, 37%)
HSVhsv(47, 80%, 62%)
CMYKcmyk(0%, 17%, 79.9%, 37.6%)
CIE-LABlab(56.07, 0.09, 53.63)
CIE-LCHlch(56.07, 53.63, 89.90°)
OKLaboklab(62.14% -0.0057 0.1166)
OKLCHoklch(62.14% 0.117 92.8)
XYZxyz(22.8114, 23.9791, 4.7932)
Luminance0.2398 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8420 #203B9F
analogous
#9F4420 #9F8420 #7B9F20
triadic
#9F8420 #209F84 #84209F
tetradic
#9F8420 #209F44 #203B9F #9F207B
square
#9F8420 #209F44 #203B9F #9F207B
split-complementary
#9F8420 #207B9F #44209F
monochromatic
#392F0B #6C5A16 #9F8420 #D2AE2A #DEC25B

Accessibility & contrast

On white

3.62
#9F8420 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#9F8420 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8420
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8420#FFFFFF#000000##000000
##9F84201.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938209
Deuteranopia (green-blind)
#9A8A26
Tritanopia (blue-blind)
#AC7971
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #9f8420;
/* rgb */ color: rgb(159, 132, 32);
/* oklch */ color: oklch(62.1% 0.117 92.8);
Tailwind
colors: {
  custom: {
    50: '#bfa764',
    500: '#9f8420',
    950: '#000000',
  },
}
SCSS
$custom: #9f8420;
$custom-light: #bfa764;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8420",
  "rgb": {
    "r": 159,
    "g": 132,
    "b": 32
  },
  "hsl": {
    "h": 47.244,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.62138,
    "c": 0.1167,
    "h": 92.8
  },
  "luminance": 0.23978
}

Semantic roles & 50–950 ramp

primary
#9F8420
secondary
#596FC2
accent
#63E93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8420

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

Preview Lab → · Contrast checker → · Palette generator →

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