#8A7B25#8A7B25

#8A7B25 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.105 H 99.1°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#8A7B25
RGBrgb(138, 123, 37)
HSLhsl(51, 58%, 34%)
HSVhsv(51, 73%, 54%)
CMYKcmyk(0%, 10.9%, 73.2%, 45.9%)
CIE-LABlab(51.50, -4.36, 46.67)
CIE-LCHlch(51.50, 46.87, 95.33°)
OKLaboklab(58.04% -0.0166 0.1037)
OKLCHoklch(58.04% 0.105 99.1)
XYZxyz(17.8990, 19.7036, 4.6103)
Luminance0.1970 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B25 #25348A
analogous
#8A4925 #8A7B25 #678A25
triadic
#8A7B25 #258A7B #7B258A
tetradic
#8A7B25 #258A49 #25348A #8A2567
square
#8A7B25 #258A49 #25348A #8A2567
split-complementary
#8A7B25 #25678A #49258A
monochromatic
#29250B #5A5018 #8A7B25 #BAA632 #D2C057

Accessibility & contrast

On white

4.25
#8A7B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#8A7B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B25
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B25#FFFFFF#000000##000000
##8A7B251.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877818
Deuteranopia (green-blind)
#8B7D2A
Tritanopia (blue-blind)
#95726A
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b25;
/* rgb */ color: rgb(138, 123, 37);
/* oklch */ color: oklch(58.0% 0.105 99.1);
Tailwind
colors: {
  custom: {
    50: '#afa065',
    500: '#8a7b25',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b25;
$custom-light: #afa065;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b25",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 37
  },
  "hsl": {
    "h": 51.089,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58043,
    "c": 0.10504,
    "h": 99.1
  },
  "luminance": 0.19703
}

Semantic roles & 50–950 ramp

primary
#8A7B25
secondary
#5463B7
accent
#5EE147
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B25

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

Preview Lab → · Contrast checker → · Palette generator →

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