#8A7F2D#8A7F2D

#8A7F2D is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.0% C 0.103 H 101.6°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A7F2D
RGBrgb(138, 127, 45)
HSLhsl(53, 51%, 36%)
HSVhsv(53, 67%, 54%)
CMYKcmyk(0%, 8%, 67.4%, 45.9%)
CIE-LABlab(52.70, -6.12, 44.45)
CIE-LCHlch(52.70, 44.87, 97.84°)
OKLaboklab(59.01% -0.0207 0.1005)
OKLCHoklch(59.01% 0.103 101.6)
XYZxyz(18.5450, 20.7723, 5.5147)
Luminance0.2077 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7F2D #2D388A
analogous
#8A502D #8A7F2D #668A2D
triadic
#8A7F2D #2D8A7F #7F2D8A
tetradic
#8A7F2D #2D8A50 #2D388A #8A2D66
square
#8A7F2D #2D8A50 #2D388A #8A2D66
split-complementary
#8A7F2D #2D668A #502D8A
monochromatic
#2E2A0F #5C551E #8A7F2D #B8A93C #CDC065

Accessibility & contrast

On white

4.07
#8A7F2D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8A7F2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7F2D
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7F2D#FFFFFF#000000##000000
##8A7F2D1.004.075.155.15
#FFFFFF4.071.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B23
Deuteranopia (green-blind)
#8E8032
Tritanopia (blue-blind)
#94766E
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8a7f2d;
/* rgb */ color: rgb(138, 127, 45);
/* oklch */ color: oklch(59.0% 0.103 101.6);
Tailwind
colors: {
  custom: {
    50: '#afa36a',
    500: '#8a7f2d',
    950: '#000000',
  },
}
SCSS
$custom: #8a7f2d;
$custom-light: #afa36a;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7f2d",
  "rgb": {
    "r": 138,
    "g": 127,
    "b": 45
  },
  "hsl": {
    "h": 52.903,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.59014,
    "c": 0.10258,
    "h": 101.6
  },
  "luminance": 0.20771
}

Semantic roles & 50–950 ramp

primary
#8A7F2D
secondary
#6069B3
accent
#5EDA4D
background
#FBFAF6
surface
#F6F3EB
border
#D0CDC6
text
#110F07
muted
#807F7A

Preview Lab

Preview with #8A7F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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