#8D7E28#8D7E28

#8D7E28 is a mid, moderate yellow. Relative luminance 0.207; OKLCH L 59.0% C 0.106 H 99.2°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8D7E28
RGBrgb(141, 126, 40)
HSLhsl(51, 56%, 35%)
HSVhsv(51, 72%, 55%)
CMYKcmyk(0%, 10.6%, 71.6%, 44.7%)
CIE-LABlab(52.66, -4.48, 46.68)
CIE-LCHlch(52.66, 46.89, 95.49°)
OKLaboklab(59.04% -0.0168 0.1042)
OKLCHoklch(59.04% 0.106 99.2)
XYZxyz(18.8292, 20.7385, 5.0182)
Luminance0.2074 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D7E28 #28378D
analogous
#8D4B28 #8D7E28 #698D28
triadic
#8D7E28 #288D7E #7E288D
tetradic
#8D7E28 #288D4B #28378D #8D2869
square
#8D7E28 #288D4B #28378D #8D2869
split-complementary
#8D7E28 #28698D #4B288D
monochromatic
#2E290D #5D531A #8D7E28 #BDA936 #D1C05E

Accessibility & contrast

On white

4.08
#8D7E28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#8D7E28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8D7E28
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D7E28#FFFFFF#000000##000000
##8D7E281.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7B1B
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#98756D
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8d7e28;
/* rgb */ color: rgb(141, 126, 40);
/* oklch */ color: oklch(59.0% 0.106 99.2);
Tailwind
colors: {
  custom: {
    50: '#b1a367',
    500: '#8d7e28',
    950: '#000000',
  },
}
SCSS
$custom: #8d7e28;
$custom-light: #b1a367;
$custom-dark: #000000;
JSON
{
  "hex": "#8d7e28",
  "rgb": {
    "r": 141,
    "g": 126,
    "b": 40
  },
  "hsl": {
    "h": 51.089,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5904,
    "c": 0.10554,
    "h": 99.2
  },
  "luminance": 0.20738
}

Semantic roles & 50–950 ramp

primary
#8D7E28
secondary
#5A68B7
accent
#5FDF49
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8D7E28

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

Preview Lab → · Contrast checker → · Palette generator →

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