#817E18#817E18

#817E18 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.116 H 107.8°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#817E18
RGBrgb(129, 126, 24)
HSLhsl(58, 69%, 30%)
HSVhsv(58, 81%, 51%)
CMYKcmyk(0%, 2.3%, 81.4%, 49.4%)
CIE-LABlab(51.45, -10.78, 51.05)
CIE-LCHlch(51.45, 52.17, 101.92°)
OKLaboklab(57.77% -0.0355 0.1108)
OKLCHoklch(57.77% 0.116 107.8)
XYZxyz(16.6797, 19.6554, 3.7792)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E18 #181B81
analogous
#814A18 #817E18 #4F8118
triadic
#817E18 #18817E #7E1881
tetradic
#817E18 #18814A #181B81 #81184F
square
#817E18 #18814A #181B81 #81184F
split-complementary
#817E18 #184F81 #4A1881
monochromatic
#1A1905 #4D4C0E #817E18 #B5B022 #DAD639

Accessibility & contrast

On white

4.26
#817E18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#817E18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817E18
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817E18#FFFFFF#000000##000000
##817E181.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#8B756B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e18;
/* rgb */ color: rgb(129, 126, 24);
/* oklch */ color: oklch(57.8% 0.116 107.8);
Tailwind
colors: {
  custom: {
    50: '#a9a35f',
    500: '#817e18',
    950: '#000000',
  },
}
SCSS
$custom: #817e18;
$custom-light: #a9a35f;
$custom-dark: #000000;
JSON
{
  "hex": "#817e18",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 24
  },
  "hsl": {
    "h": 58.286,
    "s": 68.627,
    "l": 30
  },
  "oklch": {
    "l": 0.57773,
    "c": 0.11635,
    "h": 107.8
  },
  "luminance": 0.19655
}

Semantic roles & 50–950 ramp

primary
#817E18
secondary
#4043B5
accent
#41EB3C
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817E18

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

Preview Lab → · Contrast checker → · Palette generator →

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