#8A8725#8A8725

#8A8725 is a mid, moderate yellow. Relative luminance 0.229; OKLCH L 60.8% C 0.116 H 107.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A8725
RGBrgb(138, 135, 37)
HSLhsl(58, 58%, 34%)
HSVhsv(58, 73%, 54%)
CMYKcmyk(0%, 2.2%, 73.2%, 45.9%)
CIE-LABlab(54.93, -10.95, 50.03)
CIE-LCHlch(54.93, 51.21, 102.35°)
OKLaboklab(60.77% -0.0352 0.1108)
OKLCHoklch(60.77% 0.116 107.6)
XYZxyz(19.4799, 22.8654, 5.1373)
Luminance0.2286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A8725 #25288A
analogous
#8A5525 #8A8725 #5B8A25
triadic
#8A8725 #258A87 #87258A
tetradic
#8A8725 #258A55 #25288A #8A255B
square
#8A8725 #258A55 #25288A #8A255B
split-complementary
#8A8725 #255B8A #55258A
monochromatic
#29290B #5A5818 #8A8725 #BAB632 #D2CE57

Accessibility & contrast

On white

3.77
#8A8725 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#8A8725 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A8725
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A8725#FFFFFF#000000##000000
##8A87251.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938214
Deuteranopia (green-blind)
#94852C
Tritanopia (blue-blind)
#947E74
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #8a8725;
/* rgb */ color: rgb(138, 135, 37);
/* oklch */ color: oklch(60.8% 0.116 107.6);
Tailwind
colors: {
  custom: {
    50: '#afa967',
    500: '#8a8725',
    950: '#000000',
  },
}
SCSS
$custom: #8a8725;
$custom-light: #afa967;
$custom-dark: #000000;
JSON
{
  "hex": "#8a8725",
  "rgb": {
    "r": 138,
    "g": 135,
    "b": 37
  },
  "hsl": {
    "h": 58.218,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60773,
    "c": 0.11629,
    "h": 107.6
  },
  "luminance": 0.22865
}

Semantic roles & 50–950 ramp

primary
#8A8725
secondary
#5457B7
accent
#4BE147
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A8725

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

Preview Lab → · Contrast checker → · Palette generator →

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