#808318#808318

#808318 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.9% C 0.122 H 111.3°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#808318
RGBrgb(128, 131, 24)
HSLhsl(62, 69%, 30%)
HSVhsv(62, 82%, 51%)
CMYKcmyk(2.3%, 0%, 81.7%, 48.6%)
CIE-LABlab(52.83, -13.94, 52.23)
CIE-LCHlch(52.83, 54.06, 104.95°)
OKLaboklab(58.86% -0.0442 0.1134)
OKLCHoklch(58.86% 0.122 111.3)
XYZxyz(17.1839, 20.8882, 3.9906)
Luminance0.2089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808318 #1B1883
analogous
#835018 #808318 #4B8318
triadic
#808318 #188083 #831880
tetradic
#808318 #188350 #1B1883 #83184B
square
#808318 #188350 #1B1883 #83184B
split-complementary
#808318 #184B83 #501883
monochromatic
#1B1C05 #4D4F0F #808318 #B3B721 #D6DB3A

Accessibility & contrast

On white

4.06
#808318 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#808318 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808318
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808318#FFFFFF#000000##000000
##8083181.004.065.185.18
#FFFFFF4.061.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8E7F22
Tritanopia (blue-blind)
#897A70
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #808318;
/* rgb */ color: rgb(128, 131, 24);
/* oklch */ color: oklch(58.9% 0.122 111.3);
Tailwind
colors: {
  custom: {
    50: '#a8a660',
    500: '#808318',
    950: '#000000',
  },
}
SCSS
$custom: #808318;
$custom-light: #a8a660;
$custom-dark: #000000;
JSON
{
  "hex": "#808318",
  "rgb": {
    "r": 128,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 61.682,
    "s": 69.032,
    "l": 30.392
  },
  "oklch": {
    "l": 0.58856,
    "c": 0.12172,
    "h": 111.3
  },
  "luminance": 0.20888
}

Semantic roles & 50–950 ramp

primary
#808318
secondary
#4340B7
accent
#3CEC41
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #808318

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

Preview Lab → · Contrast checker → · Palette generator →

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