#808228#808228

#808228 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.7% C 0.111 H 110.6°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#808228
RGBrgb(128, 130, 40)
HSLhsl(61, 53%, 33%)
HSVhsv(61, 69%, 51%)
CMYKcmyk(1.5%, 0%, 69.2%, 49%)
CIE-LABlab(52.63, -12.63, 46.26)
CIE-LCHlch(52.63, 47.95, 105.27°)
OKLaboklab(58.73% -0.039 0.1037)
OKLCHoklch(58.73% 0.111 110.6)
XYZxyz(17.2683, 20.7081, 5.0945)
Luminance0.2071 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#808228 #2A2882
analogous
#825728 #808228 #538228
triadic
#808228 #288082 #822880
tetradic
#808228 #288257 #2A2882 #822853
square
#808228 #288257 #2A2882 #822853
split-complementary
#808228 #285382 #572882
monochromatic
#24240B #52531A #808228 #AEB136 #C9CC59

Accessibility & contrast

On white

4.08
#808228 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#808228 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #808228
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##808228#FFFFFF#000000##000000
##8082281.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #808228;
/* rgb */ color: rgb(128, 130, 40);
/* oklch */ color: oklch(58.7% 0.111 110.6);
Tailwind
colors: {
  custom: {
    50: '#a8a668',
    500: '#808228',
    950: '#000000',
  },
}
SCSS
$custom: #808228;
$custom-light: #a8a668;
$custom-dark: #000000;
JSON
{
  "hex": "#808228",
  "rgb": {
    "r": 128,
    "g": 130,
    "b": 40
  },
  "hsl": {
    "h": 61.333,
    "s": 52.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58728,
    "c": 0.11084,
    "h": 110.6
  },
  "luminance": 0.20708
}

Semantic roles & 50–950 ramp

primary
#808228
secondary
#5755B1
accent
#4BDC4F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #808228

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

Preview Lab → · Contrast checker → · Palette generator →

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