#81731F#81731F

#81731F is a mid, moderate yellow. Relative luminance 0.170; OKLCH L 55.3% C 0.102 H 99.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#81731F
RGBrgb(129, 115, 31)
HSLhsl(51, 61%, 31%)
HSVhsv(51, 76%, 51%)
CMYKcmyk(0%, 10.9%, 76%, 49.4%)
CIE-LABlab(48.30, -4.37, 45.67)
CIE-LCHlch(48.30, 45.88, 95.46°)
OKLaboklab(55.28% -0.0168 0.1008)
OKLCHoklch(55.28% 0.102 99.5)
XYZxyz(15.4321, 17.0283, 3.7700)
Luminance0.1703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#81731F #1F2D81
analogous
#81421F #81731F #5E811F
triadic
#81731F #1F8173 #731F81
tetradic
#81731F #1F8142 #1F2D81 #811F5E
square
#81731F #1F8142 #1F2D81 #811F5E
split-complementary
#81731F #1F5E81 #421F81
monochromatic
#1E1B07 #504713 #81731F #B29F2B #D3BF47

Accessibility & contrast

On white

4.77
#81731F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#81731F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #81731F
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##81731F#FFFFFF#000000##FFFFFF
##81731F1.004.774.414.77
#FFFFFF4.771.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F7010
Deuteranopia (green-blind)
#827524
Tritanopia (blue-blind)
#8B6A63
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #81731f;
/* rgb */ color: rgb(129, 115, 31);
/* oklch */ color: oklch(55.3% 0.102 99.5);
Tailwind
colors: {
  custom: {
    50: '#a99b61',
    500: '#81731f',
    950: '#000000',
  },
}
SCSS
$custom: #81731f;
$custom-light: #a99b61;
$custom-dark: #000000;
JSON
{
  "hex": "#81731f",
  "rgb": {
    "r": 129,
    "g": 115,
    "b": 31
  },
  "hsl": {
    "h": 51.429,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.5528,
    "c": 0.10215,
    "h": 99.5
  },
  "luminance": 0.17028
}

Semantic roles & 50–950 ramp

primary
#81731F
secondary
#4857B4
accent
#5AE443
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #81731F

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

Preview Lab → · Contrast checker → · Palette generator →

#81731F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva