#8A8528#8A8528

#8A8528 is a mid, moderate yellow. Relative luminance 0.223; OKLCH L 60.3% C 0.112 H 106.3°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#8A8528
RGBrgb(138, 133, 40)
HSLhsl(57, 55%, 35%)
HSVhsv(57, 71%, 54%)
CMYKcmyk(0%, 3.6%, 71%, 45.9%)
CIE-LABlab(54.38, -9.71, 48.30)
CIE-LCHlch(54.38, 49.27, 101.37°)
OKLaboklab(60.34% -0.0314 0.1077)
OKLCHoklch(60.34% 0.112 106.3)
XYZxyz(19.2525, 22.3322, 5.3035)
Luminance0.2233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8528 #282D8A
analogous
#8A5428 #8A8528 #5E8A28
triadic
#8A8528 #288A85 #85288A
tetradic
#8A8528 #288A54 #282D8A #8A285E
square
#8A8528 #288A54 #282D8A #8A285E
split-complementary
#8A8528 #285E8A #54288A
monochromatic
#2B2A0C #5B571A #8A8528 #B9B336 #D0CA5D

Accessibility & contrast

On white

3.84
#8A8528 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#8A8528 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8528
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8528#FFFFFF#000000##000000
##8A85281.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#91801A
Deuteranopia (green-blind)
#93842E
Tritanopia (blue-blind)
#947C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8528;
/* rgb */ color: rgb(138, 133, 40);
/* oklch */ color: oklch(60.3% 0.112 106.3);
Tailwind
colors: {
  custom: {
    50: '#afa868',
    500: '#8a8528',
    950: '#000000',
  },
}
SCSS
$custom: #8a8528;
$custom-light: #afa868;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8528",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 40
  },
  "hsl": {
    "h": 56.939,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60337,
    "c": 0.11221,
    "h": 106.3
  },
  "luminance": 0.22332
}

Semantic roles & 50–950 ramp

primary
#8A8528
secondary
#595DB5
accent
#51DE49
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8528

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

Preview Lab → · Contrast checker → · Palette generator →

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