#817218#817218

#817218 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 55.0% C 0.105 H 99.2°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#817218
RGBrgb(129, 114, 24)
HSLhsl(51, 69%, 30%)
HSVhsv(51, 81%, 51%)
CMYKcmyk(0%, 11.6%, 81.4%, 49.4%)
CIE-LABlab(47.97, -4.11, 47.94)
CIE-LCHlch(47.97, 48.12, 94.90°)
OKLaboklab(55.01% -0.0168 0.1041)
OKLCHoklch(55.01% 0.105 99.2)
XYZxyz(15.2362, 16.7685, 3.2981)
Luminance0.1677 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817218 #182781
analogous
#813E18 #817218 #5B8118
triadic
#817218 #188172 #721881
tetradic
#817218 #18813E #182781 #81185B
square
#817218 #18813E #182781 #81185B
split-complementary
#817218 #185B81 #3E1881
monochromatic
#1A1705 #4D440E #817218 #B5A022 #DAC339

Accessibility & contrast

On white

4.82
#817218 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#817218 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #817218
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817218#FFFFFF#000000##FFFFFF
##8172181.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F02
Deuteranopia (green-blind)
#82741F
Tritanopia (blue-blind)
#8C6961
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #817218;
/* rgb */ color: rgb(129, 114, 24);
/* oklch */ color: oklch(55.0% 0.105 99.2);
Tailwind
colors: {
  custom: {
    50: '#a99a5e',
    500: '#817218',
    950: '#000000',
  },
}
SCSS
$custom: #817218;
$custom-light: #a99a5e;
$custom-dark: #000000;
JSON
{
  "hex": "#817218",
  "rgb": {
    "r": 129,
    "g": 114,
    "b": 24
  },
  "hsl": {
    "h": 51.429,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.55006,
    "c": 0.10548,
    "h": 99.2
  },
  "luminance": 0.16768
}

Semantic roles & 50–950 ramp

primary
#817218
secondary
#4050B5
accent
#55EB3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817218

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

Preview Lab → · Contrast checker → · Palette generator →

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