#8A7E2A#8A7E2A

#8A7E2A is a mid, moderate yellow. Relative luminance 0.205; OKLCH L 58.8% C 0.104 H 101.1°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#8A7E2A
RGBrgb(138, 126, 42)
HSLhsl(53, 53%, 35%)
HSVhsv(53, 70%, 54%)
CMYKcmyk(0%, 8.7%, 69.6%, 45.9%)
CIE-LABlab(52.39, -5.75, 45.45)
CIE-LCHlch(52.39, 45.81, 97.21°)
OKLaboklab(58.76% -0.02 0.1021)
OKLCHoklch(58.76% 0.104 101.1)
XYZxyz(18.3608, 20.4929, 5.1784)
Luminance0.2049 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7E2A #2A368A
analogous
#8A4E2A #8A7E2A #668A2A
triadic
#8A7E2A #2A8A7E #7E2A8A
tetradic
#8A7E2A #2A8A4E #2A368A #8A2A66
square
#8A7E2A #2A8A4E #2A368A #8A2A66
split-complementary
#8A7E2A #2A668A #4E2A8A
monochromatic
#2C280D #5B531C #8A7E2A #B9A938 #CFC160

Accessibility & contrast

On white

4.12
#8A7E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#8A7E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7E2A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7E2A#FFFFFF#000000##000000
##8A7E2A1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1E
Deuteranopia (green-blind)
#8D7F2F
Tritanopia (blue-blind)
#95756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8a7e2a;
/* rgb */ color: rgb(138, 126, 42);
/* oklch */ color: oklch(58.8% 0.104 101.1);
Tailwind
colors: {
  custom: {
    50: '#afa369',
    500: '#8a7e2a',
    950: '#000000',
  },
}
SCSS
$custom: #8a7e2a;
$custom-light: #afa369;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7e2a",
  "rgb": {
    "r": 138,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 52.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.58761,
    "c": 0.10401,
    "h": 101.1
  },
  "luminance": 0.20492
}

Semantic roles & 50–950 ramp

primary
#8A7E2A
secondary
#5B67B4
accent
#5DDD4B
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8A7E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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