#8A7E25#8A7E25

#8A7E25 is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.7% C 0.108 H 101.4°. Best body text is #000000 at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A7E25
RGBrgb(138, 126, 37)
HSLhsl(53, 58%, 34%)
HSVhsv(53, 73%, 54%)
CMYKcmyk(0%, 8.7%, 73.2%, 45.9%)
CIE-LABlab(52.35, -6.03, 47.51)
CIE-LCHlch(52.35, 47.89, 97.23°)
OKLaboklab(58.72% -0.0214 0.1055)
OKLCHoklch(58.72% 0.108 101.4)
XYZxyz(18.2768, 20.4594, 4.7362)
Luminance0.2046 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E25 #25318A
analogous
#8A4C25 #8A7E25 #648A25
triadic
#8A7E25 #258A7E #7E258A
tetradic
#8A7E25 #258A4C #25318A #8A2564
square
#8A7E25 #258A4C #25318A #8A2564
split-complementary
#8A7E25 #25648A #4C258A
monochromatic
#29260B #5A5218 #8A7E25 #BAAA32 #D2C357

Accessibility & contrast

On white

4.12
#8A7E25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.09
#8A7E25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E25
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E25#FFFFFF#000000##000000
##8A7E251.004.125.095.09
#FFFFFF4.121.0021.0021.00
#0000005.0921.001.001.00
##0000005.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A17
Deuteranopia (green-blind)
#8E7F2B
Tritanopia (blue-blind)
#95756C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e25;
/* rgb */ color: rgb(138, 126, 37);
/* oklch */ color: oklch(58.7% 0.108 101.4);
Tailwind
colors: {
  custom: {
    50: '#afa366',
    500: '#8a7e25',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e25;
$custom-light: #afa366;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e25",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 37
  },
  "hsl": {
    "h": 52.871,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58719,
    "c": 0.10763,
    "h": 101.4
  },
  "luminance": 0.20459
}

Semantic roles & 50–950 ramp

primary
#8A7E25
secondary
#5460B7
accent
#59E147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E25

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

Preview Lab → · Contrast checker → · Palette generator →

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