#81871D#81871D

#81871D is a mid, vivid yellow. Relative luminance 0.221; OKLCH L 59.9% C 0.123 H 112.9°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#81871D
RGBrgb(129, 135, 29)
HSLhsl(63, 65%, 32%)
HSVhsv(63, 79%, 53%)
CMYKcmyk(4.4%, 0%, 78.5%, 47.1%)
CIE-LABlab(54.12, -15.41, 51.85)
CIE-LCHlch(54.12, 54.09, 106.56°)
OKLaboklab(59.92% -0.0479 0.1135)
OKLCHoklch(59.92% 0.123 112.9)
XYZxyz(17.9396, 22.0842, 4.4798)
Luminance0.2208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81871D #231D87
analogous
#87581D #81871D #4C871D
triadic
#81871D #1D8187 #871D81
tetradic
#81871D #1D8758 #231D87 #871D4C
square
#81871D #1D8758 #231D87 #871D4C
split-complementary
#81871D #1D4C87 #581D87
monochromatic
#212207 #515512 #81871D #B1B928 #CFD747

Accessibility & contrast

On white

3.88
#81871D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#81871D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #81871D
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81871D#FFFFFF#000000##000000
##81871D1.003.885.425.42
#FFFFFF3.881.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#928001
Deuteranopia (green-blind)
#928226
Tritanopia (blue-blind)
#8A7E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #81871d;
/* rgb */ color: rgb(129, 135, 29);
/* oklch */ color: oklch(59.9% 0.123 112.9);
Tailwind
colors: {
  custom: {
    50: '#a9a963',
    500: '#81871d',
    950: '#000000',
  },
}
SCSS
$custom: #81871d;
$custom-light: #a9a963;
$custom-dark: #000000;
JSON
{
  "hex": "#81871d",
  "rgb": {
    "r": 129,
    "g": 135,
    "b": 29
  },
  "hsl": {
    "h": 63.396,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59917,
    "c": 0.12319,
    "h": 112.9
  },
  "luminance": 0.22084
}

Semantic roles & 50–950 ramp

primary
#81871D
secondary
#4D46B9
accent
#40E84A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #81871D

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

Preview Lab → · Contrast checker → · Palette generator →

#81871D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva