#8F802F#8F802F

#8F802F is a mid, moderate yellow. Relative luminance 0.215; OKLCH L 59.7% C 0.102 H 98.7°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8F802F
RGBrgb(143, 128, 47)
HSLhsl(51, 51%, 37%)
HSVhsv(51, 67%, 56%)
CMYKcmyk(0%, 10.5%, 67.1%, 43.9%)
CIE-LABlab(53.48, -4.26, 44.51)
CIE-LCHlch(53.48, 44.71, 95.47°)
OKLaboklab(59.75% -0.0155 0.1008)
OKLCHoklch(59.75% 0.102 98.7)
XYZxyz(19.5608, 21.4841, 5.8053)
Luminance0.2148 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F802F #2F3E8F
analogous
#8F502F #8F802F #6E8F2F
triadic
#8F802F #2F8F80 #802F8F
tetradic
#8F802F #2F8F50 #2F3E8F #8F2F6E
square
#8F802F #2F8F50 #2F3E8F #8F2F6E
split-complementary
#8F802F #2F6E8F #502F8F
monochromatic
#332E11 #615720 #8F802F #BDA93E #CEBF6A

Accessibility & contrast

On white

3.96
#8F802F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#8F802F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8F802F
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F802F#FFFFFF#000000##000000
##8F802F1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7D25
Deuteranopia (green-blind)
#908233
Tritanopia (blue-blind)
#9A776F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8f802f;
/* rgb */ color: rgb(143, 128, 47);
/* oklch */ color: oklch(59.7% 0.102 98.7);
Tailwind
colors: {
  custom: {
    50: '#b3a46c',
    500: '#8f802f',
    950: '#000000',
  },
}
SCSS
$custom: #8f802f;
$custom-light: #b3a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#8f802f",
  "rgb": {
    "r": 143,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 50.625,
    "s": 50.526,
    "l": 37.255
  },
  "oklch": {
    "l": 0.59749,
    "c": 0.10196,
    "h": 98.7
  },
  "luminance": 0.21483
}

Semantic roles & 50–950 ramp

primary
#8F802F
secondary
#6571B5
accent
#64DA4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8F802F

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

Preview Lab → · Contrast checker → · Palette generator →

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