#8B7E28#8B7E28

#8B7E28 is a mid, moderate yellow. Relative luminance 0.206; OKLCH L 58.8% C 0.105 H 100.5°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8B7E28
RGBrgb(139, 126, 40)
HSLhsl(52, 55%, 35%)
HSVhsv(52, 71%, 55%)
CMYKcmyk(0%, 9.4%, 71.2%, 45.5%)
CIE-LABlab(52.47, -5.40, 46.42)
CIE-LCHlch(52.47, 46.73, 96.64°)
OKLaboklab(58.84% -0.0193 0.1037)
OKLCHoklch(58.84% 0.106 100.5)
XYZxyz(18.4921, 20.5647, 5.0024)
Luminance0.2056 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B7E28 #28358B
analogous
#8B4C28 #8B7E28 #678B28
triadic
#8B7E28 #288B7E #7E288B
tetradic
#8B7E28 #288B4C #28358B #8B2867
square
#8B7E28 #288B4C #28358B #8B2867
split-complementary
#8B7E28 #28678B #4C288B
monochromatic
#2C280D #5B531A #8B7E28 #BBA936 #D0C15D

Accessibility & contrast

On white

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

On black

5.11
#8B7E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8B7E28
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B7E28#FFFFFF#000000##000000
##8B7E281.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A1B
Deuteranopia (green-blind)
#8E7F2D
Tritanopia (blue-blind)
#96756D
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8b7e28;
/* rgb */ color: rgb(139, 126, 40);
/* oklch */ color: oklch(58.8% 0.105 100.5);
Tailwind
colors: {
  custom: {
    50: '#b0a367',
    500: '#8b7e28',
    950: '#000000',
  },
}
SCSS
$custom: #8b7e28;
$custom-light: #b0a367;
$custom-dark: #000000;
JSON
{
  "hex": "#8b7e28",
  "rgb": {
    "r": 139,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 52.121,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.58842,
    "c": 0.1055,
    "h": 100.5
  },
  "luminance": 0.20564
}

Semantic roles & 50–950 ramp

primary
#8B7E28
secondary
#5965B6
accent
#5DDF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8B7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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