#817E1C#817E1C

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

Color values

HEX#817E1C
RGBrgb(129, 126, 28)
HSLhsl(58, 64%, 31%)
HSVhsv(58, 78%, 51%)
CMYKcmyk(0%, 2.3%, 78.3%, 49.4%)
CIE-LABlab(51.47, -10.62, 49.75)
CIE-LCHlch(51.47, 50.87, 102.05°)
OKLaboklab(57.8% -0.0347 0.1088)
OKLCHoklch(57.8% 0.114 107.7)
XYZxyz(16.7244, 19.6733, 4.0147)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817E1C #1C1F81
analogous
#814B1C #817E1C #51811C
triadic
#817E1C #1C817E #7E1C81
tetradic
#817E1C #1C814B #1C1F81 #811C51
square
#817E1C #1C814B #1C1F81 #811C51
split-complementary
#817E1C #1C5181 #4B1C81
monochromatic
#1C1C06 #4F4D11 #817E1C #B3AF27 #D6D142

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##817E1C#FFFFFF#000000##000000
##817E1C1.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)
#897904
Deuteranopia (green-blind)
#8B7C24
Tritanopia (blue-blind)
#8B756C
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #817e1c;
/* rgb */ color: rgb(129, 126, 28);
/* oklch */ color: oklch(57.8% 0.114 107.7);
Tailwind
colors: {
  custom: {
    50: '#a9a361',
    500: '#817e1c',
    950: '#000000',
  },
}
SCSS
$custom: #817e1c;
$custom-light: #a9a361;
$custom-dark: #000000;
JSON
{
  "hex": "#817e1c",
  "rgb": {
    "r": 129,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 58.218,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.57796,
    "c": 0.11423,
    "h": 107.7
  },
  "luminance": 0.19673
}

Semantic roles & 50–950 ramp

primary
#817E1C
secondary
#4448B4
accent
#45E740
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100F05
muted
#7F7E7A

Preview Lab

Preview with #817E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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