#8A8A48#8A8A48

#8A8A48 is a mid, moderate yellow. Relative luminance 0.240; OKLCH L 61.8% C 0.088 H 108.7°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A8A48
RGBrgb(138, 138, 72)
HSLhsl(60, 31%, 41%)
HSVhsv(60, 48%, 54%)
CMYKcmyk(0%, 0%, 47.8%, 45.9%)
CIE-LABlab(56.14, -9.92, 35.11)
CIE-LCHlch(56.14, 36.49, 105.77°)
OKLaboklab(61.84% -0.0284 0.0837)
OKLCHoklch(61.84% 0.088 108.7)
XYZxyz(20.7398, 24.0486, 9.6789)
Luminance0.2405 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A48 #48488A
analogous
#8A6948 #8A8A48 #698A48
triadic
#8A8A48 #488A8A #8A488A
tetradic
#8A8A48 #488A69 #48488A #8A4869
square
#8A8A48 #488A69 #48488A #8A4869
split-complementary
#8A8A48 #48698A #69488A
monochromatic
#3A3A1E #626233 #8A8A48 #ADAD62 #C2C28A

Accessibility & contrast

On white

3.61
#8A8A48 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#8A8A48 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A48
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A48#FFFFFF#000000##000000
##8A8A481.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#938542
Deuteranopia (green-blind)
#94884B
Tritanopia (blue-blind)
#92837B
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8a8a48;
/* rgb */ color: rgb(138, 138, 72);
/* oklch */ color: oklch(61.8% 0.088 108.7);
Tailwind
colors: {
  custom: {
    50: '#aeac7c',
    500: '#8a8a48',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a48;
$custom-light: #aeac7c;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a48",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 72
  },
  "hsl": {
    "h": 60,
    "s": 31.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.61841,
    "c": 0.0884,
    "h": 108.7
  },
  "luminance": 0.24048
}

Semantic roles & 50–950 ramp

primary
#8A8A48
secondary
#8080AE
accent
#60C860
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#10100A
muted
#7F7F7C

Preview Lab

Preview with #8A8A48

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

Preview Lab → · Contrast checker → · Palette generator →

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