#8A7C24#8A7C24

#8A7C24 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 58.3% C 0.107 H 100.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#8A7C24
RGBrgb(138, 124, 36)
HSLhsl(52, 59%, 34%)
HSVhsv(52, 74%, 54%)
CMYKcmyk(0%, 10.1%, 73.9%, 45.9%)
CIE-LABlab(51.78, -4.97, 47.35)
CIE-LCHlch(51.78, 47.61, 95.99°)
OKLaboklab(58.26% -0.0185 0.105)
OKLCHoklch(58.26% 0.107 100)
XYZxyz(18.0082, 19.9468, 4.5703)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C24 #24328A
analogous
#8A4924 #8A7C24 #658A24
triadic
#8A7C24 #248A7C #7C248A
tetradic
#8A7C24 #248A49 #24328A #8A2465
square
#8A7C24 #248A49 #24328A #8A2465
split-complementary
#8A7C24 #24658A #49248A
monochromatic
#29250B #595017 #8A7C24 #BBA831 #D3C256

Accessibility & contrast

On white

4.21
#8A7C24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#8A7C24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7C24
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7C24#FFFFFF#000000##000000
##8A7C241.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887816
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7c24;
/* rgb */ color: rgb(138, 124, 36);
/* oklch */ color: oklch(58.3% 0.107 100.0);
Tailwind
colors: {
  custom: {
    50: '#afa165',
    500: '#8a7c24',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c24;
$custom-light: #afa165;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c24",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 36
  },
  "hsl": {
    "h": 51.765,
    "s": 58.621,
    "l": 34.118
  },
  "oklch": {
    "l": 0.5826,
    "c": 0.10657,
    "h": 100
  },
  "luminance": 0.19946
}

Semantic roles & 50–950 ramp

primary
#8A7C24
secondary
#5361B7
accent
#5BE246
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7C24

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

Preview Lab → · Contrast checker → · Palette generator →

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