#818222#818222

#818222 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.8% C 0.115 H 110.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#818222
RGBrgb(129, 130, 34)
HSLhsl(61, 59%, 32%)
HSVhsv(61, 74%, 51%)
CMYKcmyk(0.8%, 0%, 73.8%, 49%)
CIE-LABlab(52.67, -12.51, 48.72)
CIE-LCHlch(52.67, 50.30, 104.40°)
OKLaboklab(58.77% -0.0394 0.1078)
OKLCHoklch(58.77% 0.115 110.1)
XYZxyz(17.3252, 20.7484, 4.6053)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818222 #232282
analogous
#825322 #818222 #518222
triadic
#818222 #228182 #822281
tetradic
#818222 #228253 #232282 #822251
square
#818222 #228253 #232282 #822251
split-complementary
#818222 #225182 #532282
monochromatic
#212109 #515115 #818222 #B1B32F #CFD14E

Accessibility & contrast

On white

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

On black

5.15
#818222 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818222
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818222#FFFFFF#000000##000000
##8182221.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C10
Deuteranopia (green-blind)
#8E7F29
Tritanopia (blue-blind)
#8A7A6F
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #818222;
/* rgb */ color: rgb(129, 130, 34);
/* oklch */ color: oklch(58.8% 0.115 110.1);
Tailwind
colors: {
  custom: {
    50: '#a9a664',
    500: '#818222',
    950: '#000000',
  },
}
SCSS
$custom: #818222;
$custom-light: #a9a664;
$custom-dark: #000000;
JSON
{
  "hex": "#818222",
  "rgb": {
    "r": 129,
    "g": 130,
    "b": 34
  },
  "hsl": {
    "h": 60.625,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58771,
    "c": 0.11478,
    "h": 110.1
  },
  "luminance": 0.20748
}

Semantic roles & 50–950 ramp

primary
#818222
secondary
#4D4CB4
accent
#46E248
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #818222

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

Preview Lab → · Contrast checker → · Palette generator →

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