#81871B#81871B

#81871B 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.41:1 contrast (WCAG AA passes).

Color values

HEX#81871B
RGBrgb(129, 135, 27)
HSLhsl(63, 67%, 32%)
HSVhsv(63, 80%, 53%)
CMYKcmyk(4.4%, 0%, 80%, 47.1%)
CIE-LABlab(54.11, -15.50, 52.48)
CIE-LCHlch(54.11, 54.72, 106.45°)
OKLaboklab(59.91% -0.0483 0.1145)
OKLCHoklch(59.91% 0.124 112.9)
XYZxyz(17.9157, 22.0746, 4.3538)
Luminance0.2207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81871B #211B87
analogous
#87571B #81871B #4B871B
triadic
#81871B #1B8187 #871B81
tetradic
#81871B #1B8757 #211B87 #871B4B
square
#81871B #1B8757 #211B87 #871B4B
split-complementary
#81871B #1B4B87 #571B87
monochromatic
#202107 #505411 #81871B #B2BA25 #D1D943

Accessibility & contrast

On white

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

On black

5.41
#81871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #81871B
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81871B#FFFFFF#000000##000000
##81871B1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #81871b;
/* rgb */ color: rgb(129, 135, 27);
/* oklch */ color: oklch(59.9% 0.124 112.9);
Tailwind
colors: {
  custom: {
    50: '#a9a962',
    500: '#81871b',
    950: '#000000',
  },
}
SCSS
$custom: #81871b;
$custom-light: #a9a962;
$custom-dark: #000000;
JSON
{
  "hex": "#81871b",
  "rgb": {
    "r": 129,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 63.333,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59906,
    "c": 0.12425,
    "h": 112.9
  },
  "luminance": 0.22074
}

Semantic roles & 50–950 ramp

primary
#81871B
secondary
#4A44BA
accent
#3EEA48
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #81871B

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

Preview Lab → · Contrast checker → · Palette generator →

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