#8A852D#8A852D

#8A852D is a mid, moderate yellow. Relative luminance 0.224; OKLCH L 60.4% C 0.108 H 106.1°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A852D
RGBrgb(138, 133, 45)
HSLhsl(57, 51%, 36%)
HSVhsv(57, 67%, 54%)
CMYKcmyk(0%, 3.6%, 67.4%, 45.9%)
CIE-LABlab(54.42, -9.41, 46.24)
CIE-LCHlch(54.42, 47.19, 101.51°)
OKLaboklab(60.38% -0.03 0.1043)
OKLCHoklch(60.38% 0.108 106.1)
XYZxyz(19.3431, 22.3685, 5.7807)
Luminance0.2237 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A852D #2D328A
analogous
#8A562D #8A852D #608A2D
triadic
#8A852D #2D8A85 #852D8A
tetradic
#8A852D #2D8A56 #2D328A #8A2D60
square
#8A852D #2D8A56 #2D328A #8A2D60
split-complementary
#8A852D #2D608A #562D8A
monochromatic
#2E2C0F #5C591E #8A852D #B8B13C #CDC765

Accessibility & contrast

On white

3.84
#8A852D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8A852D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A852D
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A852D#FFFFFF#000000##000000
##8A852D1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#908021
Deuteranopia (green-blind)
#928432
Tritanopia (blue-blind)
#947C73
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a852d;
/* rgb */ color: rgb(138, 133, 45);
/* oklch */ color: oklch(60.4% 0.108 106.1);
Tailwind
colors: {
  custom: {
    50: '#afa86b',
    500: '#8a852d',
    950: '#000000',
  },
}
SCSS
$custom: #8a852d;
$custom-light: #afa86b;
$custom-dark: #000000;
JSON
{
  "hex": "#8a852d",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 45
  },
  "hsl": {
    "h": 56.774,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.60379,
    "c": 0.10849,
    "h": 106.1
  },
  "luminance": 0.22368
}

Semantic roles & 50–950 ramp

primary
#8A852D
secondary
#6064B3
accent
#55DA4D
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A852D

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

Preview Lab → · Contrast checker → · Palette generator →

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