#8E7D28#8E7D28

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

Color values

HEX#8E7D28
RGBrgb(142, 125, 40)
HSLhsl(50, 56%, 36%)
HSVhsv(50, 72%, 56%)
CMYKcmyk(0%, 12%, 71.8%, 44.3%)
CIE-LABlab(52.48, -3.46, 46.52)
CIE-LCHlch(52.48, 46.65, 94.26°)
OKLaboklab(58.92% -0.014 0.1038)
OKLCHoklch(58.92% 0.105 97.7)
XYZxyz(18.8729, 20.5722, 4.9838)
Luminance0.2057 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D28 #28398E
analogous
#8E4A28 #8E7D28 #6C8E28
triadic
#8E7D28 #288E7D #7D288E
tetradic
#8E7D28 #288E4A #28398E #8E286C
square
#8E7D28 #288E4A #28398E #8E286C
split-complementary
#8E7D28 #286C8E #4A288E
monochromatic
#2F290D #5E531B #8E7D28 #BEA735 #D2BF5F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7D28#FFFFFF#000000##000000
##8E7D281.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)
#8A7A1C
Deuteranopia (green-blind)
#8E802D
Tritanopia (blue-blind)
#99736C
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d28;
/* rgb */ color: rgb(142, 125, 40);
/* oklch */ color: oklch(58.9% 0.105 97.7);
Tailwind
colors: {
  custom: {
    50: '#b2a267',
    500: '#8e7d28',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d28;
$custom-light: #b2a267;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d28",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 50,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.58917,
    "c": 0.10477,
    "h": 97.7
  },
  "luminance": 0.20571
}

Semantic roles & 50–950 ramp

primary
#8E7D28
secondary
#5B6AB7
accent
#62DF48
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F06
muted
#807E7A

Preview Lab

Preview with #8E7D28

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

Preview Lab → · Contrast checker → · Palette generator →

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