#8A7D24#8A7D24

#8A7D24 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.5% C 0.107 H 100.8°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8A7D24
RGBrgb(138, 125, 36)
HSLhsl(52, 59%, 34%)
HSVhsv(52, 74%, 54%)
CMYKcmyk(0%, 9.4%, 73.9%, 45.9%)
CIE-LABlab(52.06, -5.52, 47.63)
CIE-LCHlch(52.06, 47.95, 96.62°)
OKLaboklab(58.49% -0.02 0.1056)
OKLCHoklch(58.49% 0.107 100.8)
XYZxyz(18.1341, 20.1987, 4.6123)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D24 #24318A
analogous
#8A4A24 #8A7D24 #648A24
triadic
#8A7D24 #248A7D #7D248A
tetradic
#8A7D24 #248A4A #24318A #8A2464
square
#8A7D24 #248A4A #24318A #8A2464
split-complementary
#8A7D24 #24648A #4A248A
monochromatic
#29250B #595117 #8A7D24 #BBA931 #D3C356

Accessibility & contrast

On white

4.17
#8A7D24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8A7D24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7D24
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7D24#FFFFFF#000000##000000
##8A7D241.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897915
Deuteranopia (green-blind)
#8D7E2A
Tritanopia (blue-blind)
#95746B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d24;
/* rgb */ color: rgb(138, 125, 36);
/* oklch */ color: oklch(58.5% 0.107 100.8);
Tailwind
colors: {
  custom: {
    50: '#afa265',
    500: '#8a7d24',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d24;
$custom-light: #afa265;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d24",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 36
  },
  "hsl": {
    "h": 52.353,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.58486,
    "c": 0.10744,
    "h": 100.8
  },
  "luminance": 0.20198
}

Semantic roles & 50–950 ramp

primary
#8A7D24
secondary
#5360B7
accent
#5AE246
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D24

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

Preview Lab → · Contrast checker → · Palette generator →

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