#8E7828#8E7828

#8E7828 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.8% C 0.101 H 93.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#8E7828
RGBrgb(142, 120, 40)
HSLhsl(47, 56%, 36%)
HSVhsv(47, 72%, 56%)
CMYKcmyk(0%, 15.5%, 71.8%, 44.3%)
CIE-LABlab(51.08, -0.65, 45.11)
CIE-LCHlch(51.08, 45.12, 90.83°)
OKLaboklab(57.81% -0.006 0.1008)
OKLCHoklch(57.81% 0.101 93.4)
XYZxyz(18.2557, 19.3379, 4.7781)
Luminance0.1934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7828 #283E8E
analogous
#8E4528 #8E7828 #718E28
triadic
#8E7828 #288E78 #78288E
tetradic
#8E7828 #288E45 #283E8E #8E2871
square
#8E7828 #288E45 #283E8E #8E2871
split-complementary
#8E7828 #28718E #45288E
monochromatic
#2F270D #5E501B #8E7828 #BEA035 #D2B95F

Accessibility & contrast

On white

4.31
#8E7828 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#8E7828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7828
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7828#FFFFFF#000000##000000
##8E78281.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85761D
Deuteranopia (green-blind)
#8B7C2C
Tritanopia (blue-blind)
#9A6E68
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e7828;
/* rgb */ color: rgb(142, 120, 40);
/* oklch */ color: oklch(57.8% 0.101 93.4);
Tailwind
colors: {
  custom: {
    50: '#b29e67',
    500: '#8e7828',
    950: '#000000',
  },
}
SCSS
$custom: #8e7828;
$custom-light: #b29e67;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7828",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 40
  },
  "hsl": {
    "h": 47.059,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.57811,
    "c": 0.10102,
    "h": 93.4
  },
  "luminance": 0.19337
}

Semantic roles & 50–950 ramp

primary
#8E7828
secondary
#5B6FB7
accent
#69DF48
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E06
muted
#807E7A

Preview Lab

Preview with #8E7828

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

Preview Lab → · Contrast checker → · Palette generator →

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