#8B7E21#8B7E21

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

Color values

HEX#8B7E21
RGBrgb(139, 126, 33)
HSLhsl(53, 62%, 34%)
HSVhsv(53, 76%, 55%)
CMYKcmyk(0%, 9.4%, 76.3%, 45.5%)
CIE-LABlab(52.42, -5.76, 49.17)
CIE-LCHlch(52.42, 49.51, 96.68°)
OKLaboklab(58.79% -0.0211 0.1082)
OKLCHoklch(58.79% 0.11 101)
XYZxyz(18.3837, 20.5213, 4.4312)
Luminance0.2052 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7E21 #212E8B
analogous
#8B4921 #8B7E21 #638B21
triadic
#8B7E21 #218B7E #7E218B
tetradic
#8B7E21 #218B49 #212E8B #8B2163
square
#8B7E21 #218B49 #212E8B #8B2163
split-complementary
#8B7E21 #21638B #49218B
monochromatic
#28240A #5A5115 #8B7E21 #BCAB2D #D6C551

Accessibility & contrast

On white

4.11
#8B7E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B7E21#FFFFFF#000000##000000
##8B7E211.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A0F
Deuteranopia (green-blind)
#8E7F27
Tritanopia (blue-blind)
#96746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8b7e21;
/* rgb */ color: rgb(139, 126, 33);
/* oklch */ color: oklch(58.8% 0.110 101.0);
Tailwind
colors: {
  custom: {
    50: '#b0a364',
    500: '#8b7e21',
    950: '#000000',
  },
}
SCSS
$custom: #8b7e21;
$custom-light: #b0a364;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7e21",
  "rgb": {
    "r": 139,
    "g": 126,
    "b": 33
  },
  "hsl": {
    "h": 52.642,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58788,
    "c": 0.11023,
    "h": 101
  },
  "luminance": 0.2052
}

Semantic roles & 50–950 ramp

primary
#8B7E21
secondary
#4F5CB9
accent
#57E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8B7E21

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

Preview Lab → · Contrast checker → · Palette generator →

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