#8D7D28#8D7D28

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

Color values

HEX#8D7D28
RGBrgb(141, 125, 40)
HSLhsl(50, 56%, 35%)
HSVhsv(50, 72%, 55%)
CMYKcmyk(0%, 11.3%, 71.6%, 44.7%)
CIE-LABlab(52.38, -3.93, 46.39)
CIE-LCHlch(52.38, 46.56, 94.84°)
OKLaboklab(58.82% -0.0152 0.1036)
OKLCHoklch(58.82% 0.105 98.4)
XYZxyz(18.7020, 20.4841, 4.9758)
Luminance0.2048 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7D28 #28388D
analogous
#8D4A28 #8D7D28 #6A8D28
triadic
#8D7D28 #288D7D #7D288D
tetradic
#8D7D28 #288D4A #28388D #8D286A
square
#8D7D28 #288D4A #28388D #8D286A
split-complementary
#8D7D28 #286A8D #4A288D
monochromatic
#2E280D #5D531A #8D7D28 #BDA736 #D1BF5E

Accessibility & contrast

On white

4.12
#8D7D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##8D7D28#FFFFFF#000000##000000
##8D7D281.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#897A1C
Deuteranopia (green-blind)
#8E7F2D
Tritanopia (blue-blind)
#98746C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8d7d28;
/* rgb */ color: rgb(141, 125, 40);
/* oklch */ color: oklch(58.8% 0.105 98.4);
Tailwind
colors: {
  custom: {
    50: '#b1a267',
    500: '#8d7d28',
    950: '#000000',
  },
}
SCSS
$custom: #8d7d28;
$custom-light: #b1a267;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7d28",
  "rgb": {
    "r": 141,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 50.495,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.58817,
    "c": 0.1047,
    "h": 98.4
  },
  "luminance": 0.20483
}

Semantic roles & 50–950 ramp

primary
#8D7D28
secondary
#5A69B7
accent
#61DF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7D28

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

Preview Lab → · Contrast checker → · Palette generator →

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