#8F8020#8F8020

#8F8020 is a mid, moderate yellow. Relative luminance 0.214; OKLCH L 59.6% C 0.112 H 100.0°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8F8020
RGBrgb(143, 128, 32)
HSLhsl(52, 63%, 34%)
HSVhsv(52, 78%, 56%)
CMYKcmyk(0%, 10.5%, 77.6%, 43.9%)
CIE-LABlab(53.37, -5.07, 50.57)
CIE-LCHlch(53.37, 50.82, 95.72°)
OKLaboklab(59.63% -0.0195 0.1108)
OKLCHoklch(59.63% 0.112 100)
XYZxyz(19.3085, 21.3832, 4.4765)
Luminance0.2138 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F8020 #202F8F
analogous
#8F4920 #8F8020 #678F20
triadic
#8F8020 #208F80 #80208F
tetradic
#8F8020 #208F49 #202F8F #8F2067
square
#8F8020 #208F49 #202F8F #8F2067
split-complementary
#8F8020 #20678F #49208F
monochromatic
#2B260A #5D5315 #8F8020 #C1AD2B #D8C651

Accessibility & contrast

On white

3.98
#8F8020 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#8F8020 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F8020
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F8020#FFFFFF#000000##000000
##8F80201.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C0C
Deuteranopia (green-blind)
#918227
Tritanopia (blue-blind)
#9B766E
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8f8020;
/* rgb */ color: rgb(143, 128, 32);
/* oklch */ color: oklch(59.6% 0.112 100.0);
Tailwind
colors: {
  custom: {
    50: '#b3a464',
    500: '#8f8020',
    950: '#000000',
  },
}
SCSS
$custom: #8f8020;
$custom-light: #b3a464;
$custom-dark: #000000;
JSON
{
  "hex": "#8f8020",
  "rgb": {
    "r": 143,
    "g": 128,
    "b": 32
  },
  "hsl": {
    "h": 51.892,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59627,
    "c": 0.11248,
    "h": 100
  },
  "luminance": 0.21382
}

Semantic roles & 50–950 ramp

primary
#8F8020
secondary
#4F5EBB
accent
#58E641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8F8020

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

Preview Lab → · Contrast checker → · Palette generator →

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