#818522#818522

#818522 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.5% C 0.118 H 111.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#818522
RGBrgb(129, 133, 34)
HSLhsl(62, 59%, 33%)
HSVhsv(62, 74%, 52%)
CMYKcmyk(3%, 0%, 74.4%, 47.8%)
CIE-LABlab(53.55, -14.12, 49.57)
CIE-LCHlch(53.55, 51.54, 105.90°)
OKLaboklab(59.48% -0.0439 0.1096)
OKLCHoklch(59.48% 0.118 111.8)
XYZxyz(17.7301, 21.5581, 4.7402)
Luminance0.2156 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#818522 #262285
analogous
#855722 #818522 #508522
triadic
#818522 #228185 #852281
tetradic
#818522 #228557 #262285 #852250
square
#818522 #228557 #262285 #852250
split-complementary
#818522 #225085 #572285
monochromatic
#222409 #525416 #818522 #B0B62E #CDD24F

Accessibility & contrast

On white

3.95
#818522 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#818522 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #818522
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##818522#FFFFFF#000000##000000
##8185221.003.955.315.31
#FFFFFF3.951.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0F
Deuteranopia (green-blind)
#90812A
Tritanopia (blue-blind)
#8A7D72
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #818522;
/* rgb */ color: rgb(129, 133, 34);
/* oklch */ color: oklch(59.5% 0.118 111.8);
Tailwind
colors: {
  custom: {
    50: '#a9a865',
    500: '#818522',
    950: '#000000',
  },
}
SCSS
$custom: #818522;
$custom-light: #a9a865;
$custom-dark: #000000;
JSON
{
  "hex": "#818522",
  "rgb": {
    "r": 129,
    "g": 133,
    "b": 34
  },
  "hsl": {
    "h": 62.424,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59477,
    "c": 0.11804,
    "h": 111.8
  },
  "luminance": 0.21558
}

Semantic roles & 50–950 ramp

primary
#818522
secondary
#514DB6
accent
#45E24C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #818522

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

Preview Lab → · Contrast checker → · Palette generator →

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