#9F8020#9F8020

#9F8020 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 61.3% C 0.114 H 89.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#9F8020
RGBrgb(159, 128, 32)
HSLhsl(45, 66%, 37%)
HSVhsv(45, 80%, 62%)
CMYKcmyk(0%, 19.5%, 79.9%, 37.6%)
CIE-LABlab(54.98, 2.32, 52.65)
CIE-LCHlch(54.98, 52.70, 87.48°)
OKLaboklab(61.28% 0.0006 0.1145)
OKLCHoklch(61.28% 0.114 89.7)
XYZxyz(22.2793, 22.9150, 4.6158)
Luminance0.2291 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#9F8020 #203F9F
analogous
#9F4020 #9F8020 #7F9F20
triadic
#9F8020 #209F80 #80209F
tetradic
#9F8020 #209F40 #203F9F #9F207F
square
#9F8020 #209F40 #203F9F #9F207F
split-complementary
#9F8020 #207F9F #40209F
monochromatic
#392E0B #6C5716 #9F8020 #D2A92A #DEBE5B

Accessibility & contrast

On white

3.76
#9F8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#9F8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #9F8020
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##9F8020#FFFFFF#000000##000000
##9F80201.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0B
Deuteranopia (green-blind)
#978726
Tritanopia (blue-blind)
#AD746E
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #9f8020;
/* rgb */ color: rgb(159, 128, 32);
/* oklch */ color: oklch(61.3% 0.114 89.7);
Tailwind
colors: {
  custom: {
    50: '#c0a464',
    500: '#9f8020',
    950: '#000000',
  },
}
SCSS
$custom: #9f8020;
$custom-light: #c0a464;
$custom-dark: #000000;
JSON
{
  "hex": "#9f8020",
  "rgb": {
    "r": 159,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 45.354,
    "s": 66.492,
    "l": 37.451
  },
  "oklch": {
    "l": 0.61284,
    "c": 0.11445,
    "h": 89.7
  },
  "luminance": 0.22914
}

Semantic roles & 50–950 ramp

primary
#9F8020
secondary
#5972C2
accent
#68E93E
background
#FCFAF6
surface
#F8F4EB
border
#D1CEC6
text
#130F06
muted
#827F7A

Preview Lab

Preview with #9F8020

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

Preview Lab → · Contrast checker → · Palette generator →

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