#8A831F#8A831F

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

Color values

HEX#8A831F
RGBrgb(138, 131, 31)
HSLhsl(56, 63%, 33%)
HSVhsv(56, 78%, 54%)
CMYKcmyk(0%, 5.1%, 77.5%, 45.9%)
CIE-LABlab(53.75, -9.07, 51.11)
CIE-LCHlch(53.75, 51.91, 100.06°)
OKLaboklab(59.82% -0.0305 0.1119)
OKLCHoklch(59.82% 0.116 105.3)
XYZxyz(18.8457, 21.7355, 4.4987)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A831F #1F268A
analogous
#8A4D1F #8A831F #5B8A1F
triadic
#8A831F #1F8A83 #831F8A
tetradic
#8A831F #1F8A4D #1F268A #8A1F5B
square
#8A831F #1F8A4D #1F268A #8A1F5B
split-complementary
#8A831F #1F5B8A #4D1F8A
monochromatic
#262409 #585414 #8A831F #BCB22A #D7CE4C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A831F#FFFFFF#000000##000000
##8A831F1.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)
#8F7E08
Deuteranopia (green-blind)
#928227
Tritanopia (blue-blind)
#957A70
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a831f;
/* rgb */ color: rgb(138, 131, 31);
/* oklch */ color: oklch(59.8% 0.116 105.3);
Tailwind
colors: {
  custom: {
    50: '#b0a663',
    500: '#8a831f',
    950: '#000000',
  },
}
SCSS
$custom: #8a831f;
$custom-light: #b0a663;
$custom-dark: #000000;
JSON
{
  "hex": "#8a831f",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 31
  },
  "hsl": {
    "h": 56.075,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59815,
    "c": 0.11603,
    "h": 105.3
  },
  "luminance": 0.21735
}

Semantic roles & 50–950 ramp

primary
#8A831F
secondary
#4B52BA
accent
#4CE641
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A831F

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

Preview Lab → · Contrast checker → · Palette generator →

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