#817C18#817C18

#817C18 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.3% C 0.114 H 106.5°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#817C18
RGBrgb(129, 124, 24)
HSLhsl(57, 69%, 30%)
HSVhsv(57, 81%, 51%)
CMYKcmyk(0%, 3.9%, 81.4%, 49.4%)
CIE-LABlab(50.86, -9.69, 50.53)
CIE-LCHlch(50.86, 51.45, 100.85°)
OKLaboklab(57.31% -0.0324 0.1097)
OKLCHoklch(57.31% 0.114 106.5)
XYZxyz(16.4265, 19.1490, 3.6948)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C18 #181D81
analogous
#814818 #817C18 #518118
triadic
#817C18 #18817C #7C1881
tetradic
#817C18 #188148 #181D81 #811851
square
#817C18 #188148 #181D81 #811851
split-complementary
#817C18 #185181 #481881
monochromatic
#1A1905 #4D4A0E #817C18 #B5AE22 #DAD339

Accessibility & contrast

On white

4.35
#817C18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#817C18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C18
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C18#FFFFFF#000000##000000
##817C181.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#877700
Deuteranopia (green-blind)
#897B21
Tritanopia (blue-blind)
#8B736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c18;
/* rgb */ color: rgb(129, 124, 24);
/* oklch */ color: oklch(57.3% 0.114 106.5);
Tailwind
colors: {
  custom: {
    50: '#a9a15f',
    500: '#817c18',
    950: '#000000',
  },
}
SCSS
$custom: #817c18;
$custom-light: #a9a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#817c18",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 24
  },
  "hsl": {
    "h": 57.143,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.57307,
    "c": 0.11438,
    "h": 106.5
  },
  "luminance": 0.19148
}

Semantic roles & 50–950 ramp

primary
#817C18
secondary
#4045B5
accent
#45EB3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #817C18

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

Preview Lab → · Contrast checker → · Palette generator →

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