#8A7D25#8A7D25

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

Color values

HEX#8A7D25
RGBrgb(138, 125, 37)
HSLhsl(52, 58%, 34%)
HSVhsv(52, 73%, 54%)
CMYKcmyk(0%, 9.4%, 73.2%, 45.9%)
CIE-LABlab(52.07, -5.47, 47.23)
CIE-LCHlch(52.07, 47.55, 96.61°)
OKLaboklab(58.49% -0.0198 0.1049)
OKLCHoklch(58.49% 0.107 100.7)
XYZxyz(18.1496, 20.2049, 4.6938)
Luminance0.2020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7D25 #25328A
analogous
#8A4B25 #8A7D25 #658A25
triadic
#8A7D25 #258A7D #7D258A
tetradic
#8A7D25 #258A4B #25328A #8A2565
square
#8A7D25 #258A4B #25328A #8A2565
split-complementary
#8A7D25 #25658A #4B258A
monochromatic
#29260B #5A5118 #8A7D25 #BAA932 #D2C257

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7D25#FFFFFF#000000##000000
##8A7D251.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)
#897917
Deuteranopia (green-blind)
#8D7E2B
Tritanopia (blue-blind)
#95746C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8a7d25;
/* rgb */ color: rgb(138, 125, 37);
/* oklch */ color: oklch(58.5% 0.107 100.7);
Tailwind
colors: {
  custom: {
    50: '#afa266',
    500: '#8a7d25',
    950: '#000000',
  },
}
SCSS
$custom: #8a7d25;
$custom-light: #afa266;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7d25",
  "rgb": {
    "r": 138,
    "g": 125,
    "b": 37
  },
  "hsl": {
    "h": 52.277,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58493,
    "c": 0.10675,
    "h": 100.7
  },
  "luminance": 0.20204
}

Semantic roles & 50–950 ramp

primary
#8A7D25
secondary
#5461B7
accent
#5BE147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7D25

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

Preview Lab → · Contrast checker → · Palette generator →

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