#8A831D#8A831D

#8A831D is a mid, moderate yellow. Relative luminance 0.217; OKLCH L 59.8% C 0.117 H 105.3°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#8A831D
RGBrgb(138, 131, 29)
HSLhsl(56, 65%, 33%)
HSVhsv(56, 79%, 54%)
CMYKcmyk(0%, 5.1%, 79%, 45.9%)
CIE-LABlab(53.73, -9.15, 51.79)
CIE-LCHlch(53.73, 52.59, 100.02°)
OKLaboklab(59.8% -0.031 0.113)
OKLCHoklch(59.8% 0.117 105.3)
XYZxyz(18.8201, 21.7253, 4.3642)
Luminance0.2172 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A831D #1D248A
analogous
#8A4D1D #8A831D #5A8A1D
triadic
#8A831D #1D8A83 #831D8A
tetradic
#8A831D #1D8A4D #1D248A #8A1D5A
square
#8A831D #1D8A4D #1D248A #8A1D5A
split-complementary
#8A831D #1D5A8A #4D1D8A
monochromatic
#252308 #575312 #8A831D #BDB328 #D9CF49

Accessibility & contrast

On white

3.93
#8A831D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#8A831D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A831D
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A831D#FFFFFF#000000##000000
##8A831D1.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E03
Deuteranopia (green-blind)
#928225
Tritanopia (blue-blind)
#957A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a831d;
/* rgb */ color: rgb(138, 131, 29);
/* oklch */ color: oklch(59.8% 0.117 105.3);
Tailwind
colors: {
  custom: {
    50: '#b0a662',
    500: '#8a831d',
    950: '#000000',
  },
}
SCSS
$custom: #8a831d;
$custom-light: #b0a662;
$custom-dark: #000000;
JSON
{
  "hex": "#8a831d",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 29
  },
  "hsl": {
    "h": 56.147,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59803,
    "c": 0.11715,
    "h": 105.3
  },
  "luminance": 0.21725
}

Semantic roles & 50–950 ramp

primary
#8A831D
secondary
#484FBB
accent
#4AE840
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A831D

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

Preview Lab → · Contrast checker → · Palette generator →

#8A831D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva