#8A8A52#8A8A52

#8A8A52 is a mid, moderate yellow. Relative luminance 0.242; OKLCH L 62.0% C 0.077 H 108.4°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A8A52
RGBrgb(138, 138, 82)
HSLhsl(60, 25%, 43%)
HSVhsv(60, 41%, 54%)
CMYKcmyk(0%, 0%, 40.6%, 45.9%)
CIE-LABlab(56.28, -8.82, 29.97)
CIE-LCHlch(56.28, 31.24, 106.40°)
OKLaboklab(62% -0.0243 0.0729)
OKLCHoklch(62% 0.077 108.4)
XYZxyz(21.0930, 24.1899, 11.5390)
Luminance0.2419 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A52 #52528A
analogous
#8A6E52 #8A8A52 #6E8A52
triadic
#8A8A52 #528A8A #8A528A
tetradic
#8A8A52 #528A6E #52528A #8A526E
square
#8A8A52 #528A6E #52528A #8A526E
split-complementary
#8A8A52 #526E8A #6E528A
monochromatic
#3D3D24 #64643B #8A8A52 #AAAA6F #C1C196

Accessibility & contrast

On white

3.60
#8A8A52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#8A8A52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A52
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A52#FFFFFF#000000##000000
##8A8A521.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#92864E
Deuteranopia (green-blind)
#938854
Tritanopia (blue-blind)
#91847C
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8a52;
/* rgb */ color: rgb(138, 138, 82);
/* oklch */ color: oklch(62.0% 0.077 108.4);
Tailwind
colors: {
  custom: {
    50: '#adac83',
    500: '#8a8a52',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a52;
$custom-light: #adac83;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a52",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 82
  },
  "hsl": {
    "h": 60,
    "s": 25.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.61999,
    "c": 0.07687,
    "h": 108.4
  },
  "luminance": 0.24189
}

Semantic roles & 50–950 ramp

primary
#8A8A52
secondary
#8A8AAE
accent
#66C266
background
#FAFAF8
surface
#F4F4EF
border
#CECECA
text
#10100B
muted
#7F7F7C

Preview Lab

Preview with #8A8A52

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

Preview Lab → · Contrast checker → · Palette generator →

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