#808018#808018

#808018 is a mid, moderate yellow. Relative luminance 0.201; OKLCH L 58.1% C 0.119 H 109.6°. Best body text is #000000 at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#808018
RGBrgb(128, 128, 24)
HSLhsl(60, 68%, 30%)
HSVhsv(60, 81%, 50%)
CMYKcmyk(0%, 0%, 81.3%, 49.8%)
CIE-LABlab(51.94, -12.33, 51.45)
CIE-LCHlch(51.94, 52.91, 103.47°)
OKLaboklab(58.15% -0.0397 0.1117)
OKLCHoklch(58.15% 0.119 109.6)
XYZxyz(16.7868, 20.0940, 3.8582)
Luminance0.2009 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808018 #181880
analogous
#804C18 #808018 #4C8018
triadic
#808018 #188080 #801880
tetradic
#808018 #18804C #181880 #80184C
square
#808018 #18804C #181880 #80184C
split-complementary
#808018 #184C80 #4C1880
monochromatic
#1A1A05 #4C4C0E #808018 #B4B422 #DADA39

Accessibility & contrast

On white

4.18
#808018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#808018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808018
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808018#FFFFFF#000000##000000
##8080181.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8C7D21
Tritanopia (blue-blind)
#8A776D
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #808018;
/* rgb */ color: rgb(128, 128, 24);
/* oklch */ color: oklch(58.1% 0.119 109.6);
Tailwind
colors: {
  custom: {
    50: '#a8a460',
    500: '#808018',
    950: '#000000',
  },
}
SCSS
$custom: #808018;
$custom-light: #a8a460;
$custom-dark: #000000;
JSON
{
  "hex": "#808018",
  "rgb": {
    "r": 128,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 60,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.58149,
    "c": 0.11858,
    "h": 109.6
  },
  "luminance": 0.20093
}

Semantic roles & 50–950 ramp

primary
#808018
secondary
#4040B4
accent
#3DEB3D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #808018

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

Preview Lab → · Contrast checker → · Palette generator →

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