#8A7A42#8A7A42

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

Color values

HEX#8A7A42
RGBrgb(138, 122, 66)
HSLhsl(47, 35%, 40%)
HSVhsv(47, 52%, 54%)
CMYKcmyk(0%, 11.6%, 52.2%, 45.9%)
CIE-LABlab(51.52, -1.64, 32.68)
CIE-LCHlch(51.52, 32.72, 92.87°)
OKLaboklab(58.15% -0.0052 0.0778)
OKLCHoklch(58.15% 0.078 93.8)
XYZxyz(18.4248, 19.7165, 7.9883)
Luminance0.1972 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A42 #42528A
analogous
#8A5642 #8A7A42 #768A42
triadic
#8A7A42 #428A7A #7A428A
tetradic
#8A7A42 #428A56 #42528A #8A4276
square
#8A7A42 #428A56 #42528A #8A4276
split-complementary
#8A7A42 #42768A #56428A
monochromatic
#37311A #61552E #8A7A42 #B09D59 #C4B583

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A7A42#FFFFFF#000000##000000
##8A7A421.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)
#84783D
Deuteranopia (green-blind)
#897D44
Tritanopia (blue-blind)
#94726D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7a42;
/* rgb */ color: rgb(138, 122, 66);
/* oklch */ color: oklch(58.1% 0.078 93.8);
Tailwind
colors: {
  custom: {
    50: '#aea078',
    500: '#8a7a42',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a42;
$custom-light: #aea078;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a42",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 66
  },
  "hsl": {
    "h": 46.667,
    "s": 35.294,
    "l": 40
  },
  "oklch": {
    "l": 0.5815,
    "c": 0.07802,
    "h": 93.8
  },
  "luminance": 0.19716
}

Semantic roles & 50–950 ramp

primary
#8A7A42
secondary
#7985AE
accent
#75CB5C
background
#FAF9F7
surface
#F5F2ED
border
#CFCCC8
text
#100E09
muted
#7F7E7B

Preview Lab

Preview with #8A7A42

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

Preview Lab → · Contrast checker → · Palette generator →

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