#8D8822#8D8822

#8D8822 is a mid, moderate yellow. Relative luminance 0.234; OKLCH L 61.3% C 0.119 H 106.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8D8822
RGBrgb(141, 136, 34)
HSLhsl(57, 61%, 34%)
HSVhsv(57, 76%, 55%)
CMYKcmyk(0%, 3.5%, 75.9%, 44.7%)
CIE-LABlab(55.47, -10.27, 51.75)
CIE-LCHlch(55.47, 52.76, 101.23°)
OKLaboklab(61.26% -0.0338 0.1138)
OKLCHoklch(61.26% 0.119 106.6)
XYZxyz(20.0782, 23.3873, 4.9696)
Luminance0.2339 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8822 #22278D
analogous
#8D5322 #8D8822 #5D8D22
triadic
#8D8822 #228D88 #88228D
tetradic
#8D8822 #228D53 #22278D #8D225D
square
#8D8822 #228D53 #22278D #8D225D
split-complementary
#8D8822 #225D8D #53228D
monochromatic
#2A290A #5C5816 #8D8822 #BEB82E #D6D054

Accessibility & contrast

On white

3.70
#8D8822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#8D8822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8822
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8822#FFFFFF#000000##000000
##8D88221.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#94830D
Deuteranopia (green-blind)
#96872A
Tritanopia (blue-blind)
#987F75
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #8d8822;
/* rgb */ color: rgb(141, 136, 34);
/* oklch */ color: oklch(61.3% 0.119 106.6);
Tailwind
colors: {
  custom: {
    50: '#b2aa65',
    500: '#8d8822',
    950: '#000000',
  },
}
SCSS
$custom: #8d8822;
$custom-light: #b2aa65;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8822",
  "rgb": {
    "r": 141,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 57.196,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.61259,
    "c": 0.11868,
    "h": 106.6
  },
  "luminance": 0.23387
}

Semantic roles & 50–950 ramp

primary
#8D8822
secondary
#5156B9
accent
#4BE444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8D8822

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

Preview Lab → · Contrast checker → · Palette generator →

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