#8A8524#8A8524

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

Color values

HEX#8A8524
RGBrgb(138, 133, 36)
HSLhsl(57, 59%, 34%)
HSVhsv(57, 74%, 54%)
CMYKcmyk(0%, 3.6%, 73.9%, 45.9%)
CIE-LABlab(54.35, -9.92, 49.85)
CIE-LCHlch(54.35, 50.83, 101.26°)
OKLaboklab(60.31% -0.0324 0.1102)
OKLCHoklch(60.31% 0.115 106.4)
XYZxyz(19.1880, 22.3064, 4.9636)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8524 #24298A
analogous
#8A5224 #8A8524 #5C8A24
triadic
#8A8524 #248A85 #85248A
tetradic
#8A8524 #248A52 #24298A #8A245C
square
#8A8524 #248A52 #24298A #8A245C
split-complementary
#8A8524 #245C8A #52248A
monochromatic
#29270B #595617 #8A8524 #BBB431 #D3CD56

Accessibility & contrast

On white

3.85
#8A8524 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#8A8524 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8524
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8524#FFFFFF#000000##000000
##8A85241.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#918013
Deuteranopia (green-blind)
#93842B
Tritanopia (blue-blind)
#947C72
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #8a8524;
/* rgb */ color: rgb(138, 133, 36);
/* oklch */ color: oklch(60.3% 0.115 106.4);
Tailwind
colors: {
  custom: {
    50: '#afa866',
    500: '#8a8524',
    950: '#000000',
  },
}
SCSS
$custom: #8a8524;
$custom-light: #afa866;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8524",
  "rgb": {
    "r": 138,
    "g": 133,
    "b": 36
  },
  "hsl": {
    "h": 57.059,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60307,
    "c": 0.11492,
    "h": 106.4
  },
  "luminance": 0.22306
}

Semantic roles & 50–950 ramp

primary
#8A8524
secondary
#5358B7
accent
#4EE246
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8524

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

Preview Lab → · Contrast checker → · Palette generator →

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