#81871E#81871E

#81871E 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#81871E
RGBrgb(129, 135, 30)
HSLhsl(63, 64%, 32%)
HSVhsv(63, 78%, 53%)
CMYKcmyk(4.4%, 0%, 77.8%, 47.1%)
CIE-LABlab(54.12, -15.37, 51.52)
CIE-LCHlch(54.12, 53.76, 106.61°)
OKLaboklab(59.92% -0.0477 0.113)
OKLCHoklch(59.92% 0.123 112.9)
XYZxyz(17.9522, 22.0892, 4.5460)
Luminance0.2209 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81871E #241E87
analogous
#87591E #81871E #4C871E
triadic
#81871E #1E8187 #871E81
tetradic
#81871E #1E8759 #241E87 #871E4C
square
#81871E #1E8759 #241E87 #871E4C
split-complementary
#81871E #1E4C87 #591E87
monochromatic
#212308 #515513 #81871E #B1B929 #CED749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##81871E#FFFFFF#000000##000000
##81871E1.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)
#928004
Deuteranopia (green-blind)
#928227
Tritanopia (blue-blind)
#8A7E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #81871e;
/* rgb */ color: rgb(129, 135, 30);
/* oklch */ color: oklch(59.9% 0.123 112.9);
Tailwind
colors: {
  custom: {
    50: '#a9a963',
    500: '#81871e',
    950: '#000000',
  },
}
SCSS
$custom: #81871e;
$custom-light: #a9a963;
$custom-dark: #000000;
JSON
{
  "hex": "#81871e",
  "rgb": {
    "r": 129,
    "g": 135,
    "b": 30
  },
  "hsl": {
    "h": 63.429,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59923,
    "c": 0.12264,
    "h": 112.9
  },
  "luminance": 0.22089
}

Semantic roles & 50–950 ramp

primary
#81871E
secondary
#4E48B9
accent
#41E74B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F06
muted
#7F7F7A

Preview Lab

Preview with #81871E

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

Preview Lab → · Contrast checker → · Palette generator →

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