#808342#808342

#808342 is a mid, moderate yellow. Relative luminance 0.212; OKLCH L 59.3% C 0.088 H 111.1°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#808342
RGBrgb(128, 131, 66)
HSLhsl(63, 33%, 39%)
HSVhsv(63, 50%, 51%)
CMYKcmyk(2.3%, 0%, 49.6%, 48.6%)
CIE-LABlab(53.18, -11.07, 34.48)
CIE-LCHlch(53.18, 36.21, 107.79°)
OKLaboklab(59.26% -0.0317 0.082)
OKLCHoklch(59.26% 0.088 111.1)
XYZxyz(18.0021, 21.2155, 8.2999)
Luminance0.2122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808342 #454283
analogous
#836542 #808342 #5F8342
triadic
#808342 #428083 #834280
tetradic
#808342 #428365 #454283 #83425F
square
#808342 #428365 #454283 #83425F
split-complementary
#808342 #425F83 #654283
monochromatic
#303219 #585A2D #808342 #A7AB58 #BCBF80

Accessibility & contrast

On white

4.01
#808342 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#808342 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##808342#FFFFFF#000000##000000
##8083421.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7E3C
Deuteranopia (green-blind)
#8C8045
Tritanopia (blue-blind)
#877C74
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #808342;
/* rgb */ color: rgb(128, 131, 66);
/* oklch */ color: oklch(59.3% 0.088 111.1);
Tailwind
colors: {
  custom: {
    50: '#a6a678',
    500: '#808342',
    950: '#000000',
  },
}
SCSS
$custom: #808342;
$custom-light: #a6a678;
$custom-dark: #000000;
JSON
{
  "hex": "#808342",
  "rgb": {
    "r": 128,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 62.769,
    "s": 32.995,
    "l": 38.627
  },
  "oklch": {
    "l": 0.59257,
    "c": 0.08788,
    "h": 111.1
  },
  "luminance": 0.21215
}

Semantic roles & 50–950 ramp

primary
#808342
secondary
#7977AA
accent
#5FC964
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #808342

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

Preview Lab → · Contrast checker → · Palette generator →

#808342 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva