#8C802F#8C802F

#8C802F is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.5% C 0.102 H 100.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#8C802F
RGBrgb(140, 128, 47)
HSLhsl(52, 50%, 37%)
HSVhsv(52, 66%, 55%)
CMYKcmyk(0%, 8.6%, 66.4%, 45.1%)
CIE-LABlab(53.19, -5.63, 44.12)
CIE-LCHlch(53.19, 44.48, 97.27°)
OKLaboklab(59.45% -0.0192 0.1001)
OKLCHoklch(59.45% 0.102 100.9)
XYZxyz(19.0483, 21.2198, 5.7813)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C802F #2F3B8C
analogous
#8C522F #8C802F #6A8C2F
triadic
#8C802F #2F8C80 #802F8C
tetradic
#8C802F #2F8C52 #2F3B8C #8C2F6A
square
#8C802F #2F8C52 #2F3B8C #8C2F6A
split-complementary
#8C802F #2F6A8C #522F8C
monochromatic
#302C10 #5E5620 #8C802F #BAAA3E #CDC069

Accessibility & contrast

On white

4.00
#8C802F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#8C802F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C802F
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C802F#FFFFFF#000000##000000
##8C802F1.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7C25
Deuteranopia (green-blind)
#8F8133
Tritanopia (blue-blind)
#97776F
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8c802f;
/* rgb */ color: rgb(140, 128, 47);
/* oklch */ color: oklch(59.5% 0.102 100.9);
Tailwind
colors: {
  custom: {
    50: '#b0a46c',
    500: '#8c802f',
    950: '#000000',
  },
}
SCSS
$custom: #8c802f;
$custom-light: #b0a46c;
$custom-dark: #000000;
JSON
{
  "hex": "#8c802f",
  "rgb": {
    "r": 140,
    "g": 128,
    "b": 47
  },
  "hsl": {
    "h": 52.258,
    "s": 49.733,
    "l": 36.667
  },
  "oklch": {
    "l": 0.59454,
    "c": 0.10187,
    "h": 100.9
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#8C802F
secondary
#636EB4
accent
#60D94F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8C802F

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

Preview Lab → · Contrast checker → · Palette generator →

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