#8B7D21#8B7D21

#8B7D21 is a mid, moderate yellow. Relative luminance 0.203; OKLCH L 58.6% C 0.109 H 100.3°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#8B7D21
RGBrgb(139, 125, 33)
HSLhsl(52, 62%, 34%)
HSVhsv(52, 76%, 55%)
CMYKcmyk(0%, 10.1%, 76.3%, 45.5%)
CIE-LABlab(52.14, -5.21, 48.90)
CIE-LCHlch(52.14, 49.18, 96.08°)
OKLaboklab(58.56% -0.0195 0.1076)
OKLCHoklch(58.56% 0.109 100.3)
XYZxyz(18.2565, 20.2669, 4.3888)
Luminance0.2027 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7D21 #212F8B
analogous
#8B4821 #8B7D21 #648B21
triadic
#8B7D21 #218B7D #7D218B
tetradic
#8B7D21 #218B48 #212F8B #8B2164
square
#8B7D21 #218B48 #212F8B #8B2164
split-complementary
#8B7D21 #21648B #48218B
monochromatic
#28240A #5A5115 #8B7D21 #BCA92D #D6C451

Accessibility & contrast

On white

4.16
#8B7D21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#8B7D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7D21
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7D21#FFFFFF#000000##000000
##8B7D211.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#897910
Deuteranopia (green-blind)
#8D7F27
Tritanopia (blue-blind)
#96736B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8b7d21;
/* rgb */ color: rgb(139, 125, 33);
/* oklch */ color: oklch(58.6% 0.109 100.3);
Tailwind
colors: {
  custom: {
    50: '#b0a264',
    500: '#8b7d21',
    950: '#000000',
  },
}
SCSS
$custom: #8b7d21;
$custom-light: #b0a264;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7d21",
  "rgb": {
    "r": 139,
    "g": 125,
    "b": 33
  },
  "hsl": {
    "h": 52.075,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.58563,
    "c": 0.10937,
    "h": 100.3
  },
  "luminance": 0.20266
}

Semantic roles & 50–950 ramp

primary
#8B7D21
secondary
#4F5DB9
accent
#58E543
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8B7D21

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

Preview Lab → · Contrast checker → · Palette generator →

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