#8A7020#8A7020

#8A7020 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.6% C 0.101 H 90.1°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#8A7020
RGBrgb(138, 112, 32)
HSLhsl(45, 62%, 33%)
HSVhsv(45, 77%, 54%)
CMYKcmyk(0%, 18.8%, 76.8%, 45.9%)
CIE-LABlab(48.38, 1.62, 45.67)
CIE-LCHlch(48.38, 45.70, 87.96°)
OKLaboklab(55.57% -0.0001 0.1006)
OKLCHoklch(55.57% 0.101 90.1)
XYZxyz(16.5371, 17.0969, 3.7952)
Luminance0.1710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7020 #203A8A
analogous
#8A3B20 #8A7020 #6F8A20
triadic
#8A7020 #208A70 #70208A
tetradic
#8A7020 #208A3B #203A8A #8A206F
square
#8A7020 #208A3B #203A8A #8A206F
split-complementary
#8A7020 #206F8A #3B208A
monochromatic
#271F09 #584814 #8A7020 #BC982C #D6B54E

Accessibility & contrast

On white

4.75
#8A7020 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#8A7020 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A7020
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7020#FFFFFF#000000##FFFFFF
##8A70201.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6F13
Deuteranopia (green-blind)
#847624
Tritanopia (blue-blind)
#966660
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #8a7020;
/* rgb */ color: rgb(138, 112, 32);
/* oklch */ color: oklch(55.6% 0.101 90.1);
Tailwind
colors: {
  custom: {
    50: '#b09862',
    500: '#8a7020',
    950: '#000000',
  },
}
SCSS
$custom: #8a7020;
$custom-light: #b09862;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7020",
  "rgb": {
    "r": 138,
    "g": 112,
    "b": 32
  },
  "hsl": {
    "h": 45.283,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.55566,
    "c": 0.10058,
    "h": 90.1
  },
  "luminance": 0.17096
}

Semantic roles & 50–950 ramp

primary
#8A7020
secondary
#4D67B9
accent
#6AE542
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110D05
muted
#807E7A

Preview Lab

Preview with #8A7020

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

Preview Lab → · Contrast checker → · Palette generator →

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