#817B1F#817B1F

#817B1F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.1% C 0.109 H 105.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#817B1F
RGBrgb(129, 123, 31)
HSLhsl(56, 61%, 31%)
HSVhsv(56, 76%, 51%)
CMYKcmyk(0%, 4.7%, 76%, 49.4%)
CIE-LABlab(50.61, -8.84, 47.88)
CIE-LCHlch(50.61, 48.68, 100.46°)
OKLaboklab(57.12% -0.0294 0.1054)
OKLCHoklch(57.12% 0.109 105.6)
XYZxyz(16.3842, 18.9326, 4.0874)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#817B1F #1F2581
analogous
#814A1F #817B1F #56811F
triadic
#817B1F #1F817B #7B1F81
tetradic
#817B1F #1F814A #1F2581 #811F56
square
#817B1F #1F814A #1F2581 #811F56
split-complementary
#817B1F #1F5681 #4A1F81
monochromatic
#1E1D07 #504C13 #817B1F #B2AA2B #D3CA47

Accessibility & contrast

On white

4.39
#817B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#817B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #817B1F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##817B1F#FFFFFF#000000##000000
##817B1F1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760D
Deuteranopia (green-blind)
#887A26
Tritanopia (blue-blind)
#8B7269
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #817b1f;
/* rgb */ color: rgb(129, 123, 31);
/* oklch */ color: oklch(57.1% 0.109 105.6);
Tailwind
colors: {
  custom: {
    50: '#a9a062',
    500: '#817b1f',
    950: '#000000',
  },
}
SCSS
$custom: #817b1f;
$custom-light: #a9a062;
$custom-dark: #000000;
JSON
{
  "hex": "#817b1f",
  "rgb": {
    "r": 129,
    "g": 123,
    "b": 31
  },
  "hsl": {
    "h": 56.327,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.57118,
    "c": 0.10946,
    "h": 105.6
  },
  "luminance": 0.18932
}

Semantic roles & 50–950 ramp

primary
#817B1F
secondary
#484FB4
accent
#4DE443
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #817B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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