#817C1F#817C1F

#817C1F is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.4% C 0.110 H 106.3°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#817C1F
RGBrgb(129, 124, 31)
HSLhsl(57, 61%, 31%)
HSVhsv(57, 76%, 51%)
CMYKcmyk(0%, 3.9%, 76%, 49.4%)
CIE-LABlab(50.90, -9.39, 48.15)
CIE-LCHlch(50.90, 49.06, 101.03°)
OKLaboklab(57.35% -0.0309 0.106)
OKLCHoklch(57.35% 0.11 106.3)
XYZxyz(16.5089, 19.1820, 4.1289)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817C1F #1F2481
analogous
#814B1F #817C1F #55811F
triadic
#817C1F #1F817C #7C1F81
tetradic
#817C1F #1F814B #1F2481 #811F55
square
#817C1F #1F814B #1F2481 #811F55
split-complementary
#817C1F #1F5581 #4B1F81
monochromatic
#1E1D07 #504D13 #817C1F #B2AB2B #D3CC47

Accessibility & contrast

On white

4.34
#817C1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#817C1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817C1F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817C1F#FFFFFF#000000##000000
##817C1F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770D
Deuteranopia (green-blind)
#897B26
Tritanopia (blue-blind)
#8B736A
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #817c1f;
/* rgb */ color: rgb(129, 124, 31);
/* oklch */ color: oklch(57.4% 0.110 106.3);
Tailwind
colors: {
  custom: {
    50: '#a9a162',
    500: '#817c1f',
    950: '#000000',
  },
}
SCSS
$custom: #817c1f;
$custom-light: #a9a162;
$custom-dark: #000000;
JSON
{
  "hex": "#817c1f",
  "rgb": {
    "r": 129,
    "g": 124,
    "b": 31
  },
  "hsl": {
    "h": 56.939,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5735,
    "c": 0.11045,
    "h": 106.3
  },
  "luminance": 0.19181
}

Semantic roles & 50–950 ramp

primary
#817C1F
secondary
#484DB4
accent
#4CE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #817C1F

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

Preview Lab → · Contrast checker → · Palette generator →

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