#8A7B20#8A7B20

#8A7B20 is a mid, moderate yellow. Relative luminance 0.197; OKLCH L 58.0% C 0.108 H 99.5°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8A7B20
RGBrgb(138, 123, 32)
HSLhsl(52, 62%, 33%)
HSVhsv(52, 77%, 54%)
CMYKcmyk(0%, 10.9%, 76.8%, 45.9%)
CIE-LABlab(51.47, -4.60, 48.61)
CIE-LCHlch(51.47, 48.83, 95.41°)
OKLaboklab(58.01% -0.0179 0.1068)
OKLCHoklch(58.01% 0.108 99.5)
XYZxyz(17.8258, 19.6743, 4.2248)
Luminance0.1967 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A7B20 #202F8A
analogous
#8A4620 #8A7B20 #648A20
triadic
#8A7B20 #208A7B #7B208A
tetradic
#8A7B20 #208A46 #202F8A #8A2064
square
#8A7B20 #208A46 #202F8A #8A2064
split-complementary
#8A7B20 #20648A #46208A
monochromatic
#272209 #584F14 #8A7B20 #BCA72C #D6C34E

Accessibility & contrast

On white

4.26
#8A7B20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#8A7B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8A7B20
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A7B20#FFFFFF#000000##000000
##8A7B201.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87780F
Deuteranopia (green-blind)
#8C7D26
Tritanopia (blue-blind)
#957169
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #8a7b20;
/* rgb */ color: rgb(138, 123, 32);
/* oklch */ color: oklch(58.0% 0.108 99.5);
Tailwind
colors: {
  custom: {
    50: '#b0a063',
    500: '#8a7b20',
    950: '#000000',
  },
}
SCSS
$custom: #8a7b20;
$custom-light: #b0a063;
$custom-dark: #000000;
JSON
{
  "hex": "#8a7b20",
  "rgb": {
    "r": 138,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 51.509,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58006,
    "c": 0.10831,
    "h": 99.5
  },
  "luminance": 0.19673
}

Semantic roles & 50–950 ramp

primary
#8A7B20
secondary
#4D5CB9
accent
#59E542
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8A7B20

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

Preview Lab → · Contrast checker → · Palette generator →

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