#8A7C25#8A7C25

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

Color values

HEX#8A7C25
RGBrgb(138, 124, 37)
HSLhsl(52, 58%, 34%)
HSVhsv(52, 73%, 54%)
CMYKcmyk(0%, 10.1%, 73.2%, 45.9%)
CIE-LABlab(51.78, -4.92, 46.95)
CIE-LCHlch(51.78, 47.21, 95.98°)
OKLaboklab(58.27% -0.0182 0.1043)
OKLCHoklch(58.27% 0.106 99.9)
XYZxyz(18.0236, 19.9530, 4.6518)
Luminance0.1995 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7C25 #25338A
analogous
#8A4A25 #8A7C25 #668A25
triadic
#8A7C25 #258A7C #7C258A
tetradic
#8A7C25 #258A4A #25338A #8A2566
square
#8A7C25 #258A4A #25338A #8A2566
split-complementary
#8A7C25 #25668A #4A258A
monochromatic
#29250B #5A5118 #8A7C25 #BAA732 #D2C157

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7C25#FFFFFF#000000##000000
##8A7C251.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)
#887817
Deuteranopia (green-blind)
#8C7E2A
Tritanopia (blue-blind)
#95736B
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7c25;
/* rgb */ color: rgb(138, 124, 37);
/* oklch */ color: oklch(58.3% 0.106 99.9);
Tailwind
colors: {
  custom: {
    50: '#afa166',
    500: '#8a7c25',
    950: '#000000',
  },
}
SCSS
$custom: #8a7c25;
$custom-light: #afa166;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7c25",
  "rgb": {
    "r": 138,
    "g": 124,
    "b": 37
  },
  "hsl": {
    "h": 51.683,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58268,
    "c": 0.10589,
    "h": 99.9
  },
  "luminance": 0.19952
}

Semantic roles & 50–950 ramp

primary
#8A7C25
secondary
#5462B7
accent
#5CE147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7C25

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

Preview Lab → · Contrast checker → · Palette generator →

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