#8A7F25#8A7F25

#8A7F25 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 58.9% C 0.109 H 102.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#8A7F25
RGBrgb(138, 127, 37)
HSLhsl(53, 58%, 34%)
HSVhsv(53, 73%, 54%)
CMYKcmyk(0%, 8%, 73.2%, 45.9%)
CIE-LABlab(52.64, -6.58, 47.79)
CIE-LCHlch(52.64, 48.24, 97.84°)
OKLaboklab(58.95% -0.0229 0.1061)
OKLCHoklch(58.95% 0.109 102.2)
XYZxyz(18.4053, 20.7164, 4.7791)
Luminance0.2072 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F25 #25308A
analogous
#8A4D25 #8A7F25 #638A25
triadic
#8A7F25 #258A7F #7F258A
tetradic
#8A7F25 #258A4D #25308A #8A2563
square
#8A7F25 #258A4D #25308A #8A2563
split-complementary
#8A7F25 #25638A #4D258A
monochromatic
#29260B #5A5318 #8A7F25 #BAAB32 #D2C557

Accessibility & contrast

On white

4.08
#8A7F25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.14
#8A7F25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F25
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F25#FFFFFF#000000##000000
##8A7F251.004.085.145.14
#FFFFFF4.081.0021.0021.00
#0000005.1421.001.001.00
##0000005.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B16
Deuteranopia (green-blind)
#8E802B
Tritanopia (blue-blind)
#95766D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f25;
/* rgb */ color: rgb(138, 127, 37);
/* oklch */ color: oklch(58.9% 0.109 102.2);
Tailwind
colors: {
  custom: {
    50: '#afa366',
    500: '#8a7f25',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f25;
$custom-light: #afa366;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f25",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 37
  },
  "hsl": {
    "h": 53.465,
    "s": 57.714,
    "l": 34.314
  },
  "oklch": {
    "l": 0.58946,
    "c": 0.10854,
    "h": 102.2
  },
  "luminance": 0.20716
}

Semantic roles & 50–950 ramp

primary
#8A7F25
secondary
#545FB7
accent
#58E147
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F06
muted
#807F7A

Preview Lab

Preview with #8A7F25

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

Preview Lab → · Contrast checker → · Palette generator →

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