#8E7E1C#8E7E1C

#8E7E1C is a mid, moderate yellow. Relative luminance 0.208; OKLCH L 59.1% C 0.113 H 99.4°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8E7E1C
RGBrgb(142, 126, 28)
HSLhsl(52, 67%, 33%)
HSVhsv(52, 80%, 56%)
CMYKcmyk(0%, 11.3%, 80.3%, 44.3%)
CIE-LABlab(52.68, -4.58, 51.31)
CIE-LCHlch(52.68, 51.52, 95.11°)
OKLaboklab(59.06% -0.0184 0.1116)
OKLCHoklch(59.06% 0.113 99.4)
XYZxyz(18.8267, 20.7573, 4.1133)
Luminance0.2076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7E1C #1C2C8E
analogous
#8E451C #8E7E1C #658E1C
triadic
#8E7E1C #1C8E7E #7E1C8E
tetradic
#8E7E1C #1C8E45 #1C2C8E #8E1C65
square
#8E7E1C #1C8E45 #1C2C8E #8E1C65
split-complementary
#8E7E1C #1C658E #451C8E
monochromatic
#282308 #5B5112 #8E7E1C #C1AB26 #DBC749

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7E1C#FFFFFF#000000##000000
##8E7E1C1.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)
#8B7A04
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#9A746C
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #8e7e1c;
/* rgb */ color: rgb(142, 126, 28);
/* oklch */ color: oklch(59.1% 0.113 99.4);
Tailwind
colors: {
  custom: {
    50: '#b3a361',
    500: '#8e7e1c',
    950: '#000000',
  },
}
SCSS
$custom: #8e7e1c;
$custom-light: #b3a361;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7e1c",
  "rgb": {
    "r": 142,
    "g": 126,
    "b": 28
  },
  "hsl": {
    "h": 51.579,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59055,
    "c": 0.1131,
    "h": 99.4
  },
  "luminance": 0.20756
}

Semantic roles & 50–950 ramp

primary
#8E7E1C
secondary
#4959BD
accent
#56EA3E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F05
muted
#807E7A

Preview Lab

Preview with #8E7E1C

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

Preview Lab → · Contrast checker → · Palette generator →

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