#8A7A20#8A7A20

#8A7A20 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.8% C 0.107 H 98.7°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#8A7A20
RGBrgb(138, 122, 32)
HSLhsl(51, 62%, 33%)
HSVhsv(51, 77%, 54%)
CMYKcmyk(0%, 11.6%, 76.8%, 45.9%)
CIE-LABlab(51.18, -4.04, 48.35)
CIE-LCHlch(51.18, 48.51, 94.78°)
OKLaboklab(57.78% -0.0163 0.1063)
OKLCHoklch(57.78% 0.108 98.7)
XYZxyz(17.7024, 19.4275, 4.1837)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7A20 #20308A
analogous
#8A4520 #8A7A20 #658A20
triadic
#8A7A20 #208A7A #7A208A
tetradic
#8A7A20 #208A45 #20308A #8A2065
square
#8A7A20 #208A45 #20308A #8A2065
split-complementary
#8A7A20 #20658A #45208A
monochromatic
#272209 #584E14 #8A7A20 #BCA62C #D6C24E

Accessibility & contrast

On white

4.30
#8A7A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#8A7A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7A20
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7A20#FFFFFF#000000##000000
##8A7A201.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770F
Deuteranopia (green-blind)
#8B7C26
Tritanopia (blue-blind)
#957069
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8a7a20;
/* rgb */ color: rgb(138, 122, 32);
/* oklch */ color: oklch(57.8% 0.107 98.7);
Tailwind
colors: {
  custom: {
    50: '#b0a063',
    500: '#8a7a20',
    950: '#000000',
  },
}
SCSS
$custom: #8a7a20;
$custom-light: #b0a063;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7a20",
  "rgb": {
    "r": 138,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 50.943,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57781,
    "c": 0.1075,
    "h": 98.7
  },
  "luminance": 0.19427
}

Semantic roles & 50–950 ramp

primary
#8A7A20
secondary
#4D5DB9
accent
#5BE542
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7A20

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

Preview Lab → · Contrast checker → · Palette generator →

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