#8A8252#8A8252

#8A8252 is a mid, moderate yellow. Relative luminance 0.220; OKLCH L 60.2% C 0.067 H 99.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A8252
RGBrgb(138, 130, 82)
HSLhsl(51, 25%, 43%)
HSVhsv(51, 41%, 54%)
CMYKcmyk(0%, 5.8%, 40.6%, 45.9%)
CIE-LABlab(54.00, -4.41, 27.07)
CIE-LCHlch(54.00, 27.43, 99.25°)
OKLaboklab(60.2% -0.0116 0.0663)
OKLCHoklch(60.2% 0.067 99.9)
XYZxyz(19.9872, 21.9783, 11.1704)
Luminance0.2198 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8252 #525A8A
analogous
#8A6652 #8A8252 #768A52
triadic
#8A8252 #528A82 #82528A
tetradic
#8A8252 #528A66 #525A8A #8A5276
square
#8A8252 #528A66 #525A8A #8A5276
split-complementary
#8A8252 #52768A #66528A
monochromatic
#3D3A24 #645E3B #8A8252 #AAA16F #C1BA96

Accessibility & contrast

On white

3.89
#8A8252 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#8A8252 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8252
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8252#FFFFFF#000000##000000
##8A82521.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7F4E
Deuteranopia (green-blind)
#8D8354
Tritanopia (blue-blind)
#927C76
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8a8252;
/* rgb */ color: rgb(138, 130, 82);
/* oklch */ color: oklch(60.2% 0.067 99.9);
Tailwind
colors: {
  custom: {
    50: '#ada683',
    500: '#8a8252',
    950: '#000000',
  },
}
SCSS
$custom: #8a8252;
$custom-light: #ada683;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8252",
  "rgb": {
    "r": 138,
    "g": 130,
    "b": 82
  },
  "hsl": {
    "h": 51.429,
    "s": 25.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.60196,
    "c": 0.06731,
    "h": 99.9
  },
  "luminance": 0.21978
}

Semantic roles & 50–950 ramp

primary
#8A8252
secondary
#8A8FAE
accent
#73C266
background
#FAFAF8
surface
#F4F4EF
border
#CECECA
text
#100F0A
muted
#7F7F7C

Preview Lab

Preview with #8A8252

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

Preview Lab → · Contrast checker → · Palette generator →

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