#81871C#81871C

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

Color values

HEX#81871C
RGBrgb(129, 135, 28)
HSLhsl(63, 66%, 32%)
HSVhsv(63, 79%, 53%)
CMYKcmyk(4.4%, 0%, 79.3%, 47.1%)
CIE-LABlab(54.11, -15.46, 52.17)
CIE-LCHlch(54.11, 54.41, 106.50°)
OKLaboklab(59.91% -0.0481 0.114)
OKLCHoklch(59.91% 0.124 112.9)
XYZxyz(17.9274, 22.0793, 4.4157)
Luminance0.2208 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81871C #221C87
analogous
#87571C #81871C #4C871C
triadic
#81871C #1C8187 #871C81
tetradic
#81871C #1C8757 #221C87 #871C4C
square
#81871C #1C8757 #221C87 #871C4C
split-complementary
#81871C #1C4C87 #571C87
monochromatic
#202207 #515411 #81871C #B1BA27 #D0D845

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##81871C#FFFFFF#000000##000000
##81871C1.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)
#928000
Deuteranopia (green-blind)
#928226
Tritanopia (blue-blind)
#8A7E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #81871c;
/* rgb */ color: rgb(129, 135, 28);
/* oklch */ color: oklch(59.9% 0.124 112.9);
Tailwind
colors: {
  custom: {
    50: '#a9a962',
    500: '#81871c',
    950: '#000000',
  },
}
SCSS
$custom: #81871c;
$custom-light: #a9a962;
$custom-dark: #000000;
JSON
{
  "hex": "#81871c",
  "rgb": {
    "r": 129,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 63.364,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59911,
    "c": 0.12373,
    "h": 112.9
  },
  "luminance": 0.22079
}

Semantic roles & 50–950 ramp

primary
#81871C
secondary
#4B45BA
accent
#3FE949
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #81871C

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

Preview Lab → · Contrast checker → · Palette generator →

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