#8A8724#8A8724

#8A8724 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.117 H 107.7°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A8724
RGBrgb(138, 135, 36)
HSLhsl(58, 59%, 34%)
HSVhsv(58, 74%, 54%)
CMYKcmyk(0%, 2.2%, 73.9%, 45.9%)
CIE-LABlab(54.93, -11.00, 50.40)
CIE-LCHlch(54.93, 51.59, 102.31°)
OKLaboklab(60.77% -0.0355 0.1114)
OKLCHoklch(60.77% 0.117 107.7)
XYZxyz(19.4644, 22.8592, 5.0557)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8724 #24278A
analogous
#8A5424 #8A8724 #5A8A24
triadic
#8A8724 #248A87 #87248A
tetradic
#8A8724 #248A54 #24278A #8A245A
square
#8A8724 #248A54 #24278A #8A245A
split-complementary
#8A8724 #245A8A #54248A
monochromatic
#29280B #595817 #8A8724 #BBB631 #D3CF56

Accessibility & contrast

On white

3.77
#8A8724 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A8724 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8724
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8724#FFFFFF#000000##000000
##8A87241.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938112
Deuteranopia (green-blind)
#94852B
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8724;
/* rgb */ color: rgb(138, 135, 36);
/* oklch */ color: oklch(60.8% 0.117 107.7);
Tailwind
colors: {
  custom: {
    50: '#afa966',
    500: '#8a8724',
    950: '#000000',
  },
}
SCSS
$custom: #8a8724;
$custom-light: #afa966;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8724",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 36
  },
  "hsl": {
    "h": 58.235,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60766,
    "c": 0.11694,
    "h": 107.7
  },
  "luminance": 0.22859
}

Semantic roles & 50–950 ramp

primary
#8A8724
secondary
#5356B7
accent
#4BE246
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8724

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

Preview Lab → · Contrast checker → · Palette generator →

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