#8D8222#8D8222

#8D8222 is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.9% C 0.113 H 102.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8D8222
RGBrgb(141, 130, 34)
HSLhsl(54, 61%, 34%)
HSVhsv(54, 76%, 55%)
CMYKcmyk(0%, 7.8%, 75.9%, 44.7%)
CIE-LABlab(53.75, -7.00, 50.13)
CIE-LCHlch(53.75, 50.62, 97.95°)
OKLaboklab(59.89% -0.0246 0.1103)
OKLCHoklch(59.89% 0.113 102.6)
XYZxyz(19.2567, 21.7443, 4.6958)
Luminance0.2174 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D8222 #222D8D
analogous
#8D4D22 #8D8222 #638D22
triadic
#8D8222 #228D82 #82228D
tetradic
#8D8222 #228D4D #222D8D #8D2263
square
#8D8222 #228D4D #222D8D #8D2263
split-complementary
#8D8222 #22638D #4D228D
monochromatic
#2A270A #5C5516 #8D8222 #BEAF2E #D6C854

Accessibility & contrast

On white

3.93
#8D8222 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8D8222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D8222
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D8222#FFFFFF#000000##000000
##8D82221.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7E10
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#98786F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8d8222;
/* rgb */ color: rgb(141, 130, 34);
/* oklch */ color: oklch(59.9% 0.113 102.6);
Tailwind
colors: {
  custom: {
    50: '#b2a665',
    500: '#8d8222',
    950: '#000000',
  },
}
SCSS
$custom: #8d8222;
$custom-light: #b2a665;
$custom-dark: #000000;
JSON
{
  "hex": "#8d8222",
  "rgb": {
    "r": 141,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 53.832,
    "s": 61.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.59894,
    "c": 0.11304,
    "h": 102.6
  },
  "luminance": 0.21743
}

Semantic roles & 50–950 ramp

primary
#8D8222
secondary
#515CB9
accent
#54E444
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8D8222

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

Preview Lab → · Contrast checker → · Palette generator →

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