#8A8A56#8A8A56

#8A8A56 is a light, moderate yellow. Relative luminance 0.243; OKLCH L 62.1% C 0.072 H 108.3°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A8A56
RGBrgb(138, 138, 86)
HSLhsl(60, 23%, 44%)
HSVhsv(60, 38%, 54%)
CMYKcmyk(0%, 0%, 37.7%, 45.9%)
CIE-LABlab(56.34, -8.34, 27.87)
CIE-LCHlch(56.34, 29.10, 106.67°)
OKLaboklab(62.07% -0.0226 0.0683)
OKLCHoklch(62.07% 0.072 108.3)
XYZxyz(21.2497, 24.2525, 12.3641)
Luminance0.2425 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A56 #56568A
analogous
#8A7056 #8A8A56 #708A56
triadic
#8A8A56 #568A8A #8A568A
tetradic
#8A8A56 #568A70 #56568A #8A5670
square
#8A8A56 #568A70 #56568A #8A5670
split-complementary
#8A8A56 #56708A #70568A
monochromatic
#3F3F27 #64643F #8A8A56 #A9A975 #C0C09A

Accessibility & contrast

On white

3.59
#8A8A56 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#8A8A56 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A56
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A56#FFFFFF#000000##000000
##8A8A561.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928652
Deuteranopia (green-blind)
#938858
Tritanopia (blue-blind)
#91847D
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8a56;
/* rgb */ color: rgb(138, 138, 86);
/* oklch */ color: oklch(62.1% 0.072 108.3);
Tailwind
colors: {
  custom: {
    50: '#adac86',
    500: '#8a8a56',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a56;
$custom-light: #adac86;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a56",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 86
  },
  "hsl": {
    "h": 60,
    "s": 23.214,
    "l": 43.922
  },
  "oklch": {
    "l": 0.62069,
    "c": 0.07199,
    "h": 108.3
  },
  "luminance": 0.24252
}

Semantic roles & 50–950 ramp

primary
#8A8A56
secondary
#8E8EAE
accent
#68C068
background
#FAFAF8
surface
#F4F4EF
border
#CECECA
text
#10100B
muted
#7F7F7C

Preview Lab

Preview with #8A8A56

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

Preview Lab → · Contrast checker → · Palette generator →

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