#81871A#81871A

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

Color values

HEX#81871A
RGBrgb(129, 135, 26)
HSLhsl(63, 68%, 32%)
HSVhsv(63, 81%, 53%)
CMYKcmyk(4.4%, 0%, 80.7%, 47.1%)
CIE-LABlab(54.10, -15.54, 52.79)
CIE-LCHlch(54.10, 55.03, 106.40°)
OKLaboklab(59.9% -0.0485 0.1149)
OKLCHoklch(59.9% 0.125 112.9)
XYZxyz(17.9043, 22.0701, 4.2939)
Luminance0.2207 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81871A #201A87
analogous
#87571A #81871A #4B871A
triadic
#81871A #1A8187 #871A81
tetradic
#81871A #1A8757 #201A87 #871A4B
square
#81871A #1A8757 #201A87 #871A4B
split-complementary
#81871A #1A4B87 #571A87
monochromatic
#1F2006 #505410 #81871A #B2BA24 #D2DA41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##81871A#FFFFFF#000000##000000
##81871A1.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)
#928224
Tritanopia (blue-blind)
#8A7E73
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #81871a;
/* rgb */ color: rgb(129, 135, 26);
/* oklch */ color: oklch(59.9% 0.125 112.9);
Tailwind
colors: {
  custom: {
    50: '#a9a961',
    500: '#81871a',
    950: '#000000',
  },
}
SCSS
$custom: #81871a;
$custom-light: #a9a961;
$custom-dark: #000000;
JSON
{
  "hex": "#81871a",
  "rgb": {
    "r": 129,
    "g": 135,
    "b": 26
  },
  "hsl": {
    "h": 63.303,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.599,
    "c": 0.12475,
    "h": 112.9
  },
  "luminance": 0.2207
}

Semantic roles & 50–950 ramp

primary
#81871A
secondary
#4942BA
accent
#3DEB47
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#100F05
muted
#7F7F7A

Preview Lab

Preview with #81871A

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

Preview Lab → · Contrast checker → · Palette generator →

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