#8A831A#8A831A

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

Color values

HEX#8A831A
RGBrgb(138, 131, 26)
HSLhsl(56, 68%, 32%)
HSVhsv(56, 81%, 54%)
CMYKcmyk(0%, 5.1%, 81.2%, 45.9%)
CIE-LABlab(53.72, -9.27, 52.75)
CIE-LCHlch(53.72, 53.55, 99.97°)
OKLaboklab(59.79% -0.0316 0.1144)
OKLCHoklch(59.79% 0.119 105.4)
XYZxyz(18.7848, 21.7112, 4.1783)
Luminance0.2171 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A831A #1A218A
analogous
#8A4B1A #8A831A #598A1A
triadic
#8A831A #1A8A83 #831A8A
tetradic
#8A831A #1A8A4B #1A218A #8A1A59
square
#8A831A #1A8A4B #1A218A #8A1A59
split-complementary
#8A831A #1A598A #4B1A8A
monochromatic
#232107 #575210 #8A831A #BDB424 #DCD243

Accessibility & contrast

On white

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

On black

5.34
#8A831A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A831A
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A831A#FFFFFF#000000##000000
##8A831A1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#957970
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8a831a;
/* rgb */ color: rgb(138, 131, 26);
/* oklch */ color: oklch(59.8% 0.119 105.4);
Tailwind
colors: {
  custom: {
    50: '#b0a661',
    500: '#8a831a',
    950: '#000000',
  },
}
SCSS
$custom: #8a831a;
$custom-light: #b0a661;
$custom-dark: #000000;
JSON
{
  "hex": "#8a831a",
  "rgb": {
    "r": 138,
    "g": 131,
    "b": 26
  },
  "hsl": {
    "h": 56.25,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59786,
    "c": 0.11871,
    "h": 105.4
  },
  "luminance": 0.2171
}

Semantic roles & 50–950 ramp

primary
#8A831A
secondary
#434BBD
accent
#48EB3D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8A831A

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

Preview Lab → · Contrast checker → · Palette generator →

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