#817D18#817D18

#817D18 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.115 H 107.1°. Best body text is #000000 at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#817D18
RGBrgb(129, 125, 24)
HSLhsl(58, 69%, 30%)
HSVhsv(58, 81%, 51%)
CMYKcmyk(0%, 3.1%, 81.4%, 49.4%)
CIE-LABlab(51.15, -10.23, 50.79)
CIE-LCHlch(51.15, 51.81, 101.39°)
OKLaboklab(57.54% -0.034 0.1103)
OKLCHoklch(57.54% 0.115 107.1)
XYZxyz(16.5524, 19.4009, 3.7368)
Luminance0.1940 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D18 #181C81
analogous
#814818 #817D18 #518118
triadic
#817D18 #18817D #7D1881
tetradic
#817D18 #188148 #181C81 #811851
square
#817D18 #188148 #181C81 #811851
split-complementary
#817D18 #185181 #481881
monochromatic
#1A1905 #4D4B0E #817D18 #B5AF22 #DAD439

Accessibility & contrast

On white

4.30
#817D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#817D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817D18
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817D18#FFFFFF#000000##000000
##817D181.004.304.884.88
#FFFFFF4.301.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#8A7C21
Tritanopia (blue-blind)
#8B746B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #817d18;
/* rgb */ color: rgb(129, 125, 24);
/* oklch */ color: oklch(57.5% 0.115 107.1);
Tailwind
colors: {
  custom: {
    50: '#a9a25f',
    500: '#817d18',
    950: '#000000',
  },
}
SCSS
$custom: #817d18;
$custom-light: #a9a25f;
$custom-dark: #000000;
JSON
{
  "hex": "#817d18",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 24
  },
  "hsl": {
    "h": 57.714,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.5754,
    "c": 0.11536,
    "h": 107.1
  },
  "luminance": 0.194
}

Semantic roles & 50–950 ramp

primary
#817D18
secondary
#4044B5
accent
#43EB3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817D18

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

Preview Lab → · Contrast checker → · Palette generator →

#817D18 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva