#8A8A45#8A8A45

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

Color values

HEX#8A8A45
RGBrgb(138, 138, 69)
HSLhsl(60, 33%, 41%)
HSVhsv(60, 50%, 54%)
CMYKcmyk(0%, 0%, 50%, 45.9%)
CIE-LABlab(56.10, -10.21, 36.62)
CIE-LCHlch(56.10, 38.02, 105.58°)
OKLaboklab(61.8% -0.0295 0.0868)
OKLCHoklch(61.8% 0.092 108.8)
XYZxyz(20.6443, 24.0104, 9.1760)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8A45 #45458A
analogous
#8A6745 #8A8A45 #678A45
triadic
#8A8A45 #458A8A #8A458A
tetradic
#8A8A45 #458A67 #45458A #8A4567
square
#8A8A45 #458A67 #45458A #8A4567
split-complementary
#8A8A45 #45678A #67458A
monochromatic
#38381C #616131 #8A8A45 #AEAE5E #C3C387

Accessibility & contrast

On white

3.62
#8A8A45 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8A8A45 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8A45
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8A45#FFFFFF#000000##000000
##8A8A451.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#94853F
Deuteranopia (green-blind)
#958848
Tritanopia (blue-blind)
#92837A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8a8a45;
/* rgb */ color: rgb(138, 138, 69);
/* oklch */ color: oklch(61.8% 0.092 108.8);
Tailwind
colors: {
  custom: {
    50: '#aeac7a',
    500: '#8a8a45',
    950: '#000000',
  },
}
SCSS
$custom: #8a8a45;
$custom-light: #aeac7a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8a45",
  "rgb": {
    "r": 138,
    "g": 138,
    "b": 69
  },
  "hsl": {
    "h": 60,
    "s": 33.333,
    "l": 40.588
  },
  "oklch": {
    "l": 0.61798,
    "c": 0.09166,
    "h": 108.8
  },
  "luminance": 0.2401
}

Semantic roles & 50–950 ramp

primary
#8A8A45
secondary
#7D7DAE
accent
#5EC95E
background
#FAFAF7
surface
#F4F4EE
border
#CECEC9
text
#101009
muted
#7F7F7B

Preview Lab

Preview with #8A8A45

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

Preview Lab → · Contrast checker → · Palette generator →

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