#817D14#817D14

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

Color values

HEX#817D14
RGBrgb(129, 125, 20)
HSLhsl(58, 73%, 29%)
HSVhsv(58, 84%, 51%)
CMYKcmyk(0%, 3.1%, 84.5%, 49.4%)
CIE-LABlab(51.14, -10.37, 51.96)
CIE-LCHlch(51.14, 52.98, 101.29°)
OKLaboklab(57.52% -0.0347 0.112)
OKLCHoklch(57.52% 0.117 107.2)
XYZxyz(16.5138, 19.3855, 3.5336)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817D14 #141881
analogous
#814714 #817D14 #4F8114
triadic
#817D14 #14817D #7D1481
tetradic
#817D14 #148147 #141881 #81144F
square
#817D14 #148147 #141881 #81144F
split-complementary
#817D14 #144F81 #471481
monochromatic
#1A1A04 #4C4A0C #817D14 #B6B01C #DFD930

Accessibility & contrast

On white

4.31
#817D14 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##817D14#FFFFFF#000000##000000
##817D141.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #817d14;
/* rgb */ color: rgb(129, 125, 20);
/* oklch */ color: oklch(57.5% 0.117 107.2);
Tailwind
colors: {
  custom: {
    50: '#a9a25e',
    500: '#817d14',
    950: '#000000',
  },
}
SCSS
$custom: #817d14;
$custom-light: #a9a25e;
$custom-dark: #000000;
JSON
{
  "hex": "#817d14",
  "rgb": {
    "r": 129,
    "g": 125,
    "b": 20
  },
  "hsl": {
    "h": 57.798,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.5752,
    "c": 0.11723,
    "h": 107.2
  },
  "luminance": 0.19385
}

Semantic roles & 50–950 ramp

primary
#817D14
secondary
#3B3FB6
accent
#3FF038
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100F05
muted
#7F7E79

Preview Lab

Preview with #817D14

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

Preview Lab → · Contrast checker → · Palette generator →

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