#8E7D1C#8E7D1C

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

Color values

HEX#8E7D1C
RGBrgb(142, 125, 28)
HSLhsl(51, 67%, 33%)
HSVhsv(51, 80%, 56%)
CMYKcmyk(0%, 12%, 80.3%, 44.3%)
CIE-LABlab(52.40, -4.03, 51.06)
CIE-LCHlch(52.40, 51.21, 94.51°)
OKLaboklab(58.83% -0.0169 0.111)
OKLCHoklch(58.83% 0.112 98.6)
XYZxyz(18.6995, 20.5028, 4.0709)
Luminance0.2050 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7D1C #1C2D8E
analogous
#8E441C #8E7D1C #668E1C
triadic
#8E7D1C #1C8E7D #7D1C8E
tetradic
#8E7D1C #1C8E44 #1C2D8E #8E1C66
square
#8E7D1C #1C8E44 #1C2D8E #8E1C66
split-complementary
#8E7D1C #1C668E #441C8E
monochromatic
#282308 #5B5012 #8E7D1C #C1AA26 #DBC549

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7D1C#FFFFFF#000000##000000
##8E7D1C1.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)
#8A7A04
Deuteranopia (green-blind)
#8F8023
Tritanopia (blue-blind)
#9A736B
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8e7d1c;
/* rgb */ color: rgb(142, 125, 28);
/* oklch */ color: oklch(58.8% 0.112 98.6);
Tailwind
colors: {
  custom: {
    50: '#b3a261',
    500: '#8e7d1c',
    950: '#000000',
  },
}
SCSS
$custom: #8e7d1c;
$custom-light: #b3a261;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7d1c",
  "rgb": {
    "r": 142,
    "g": 125,
    "b": 28
  },
  "hsl": {
    "h": 51.053,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.58832,
    "c": 0.1123,
    "h": 98.6
  },
  "luminance": 0.20502
}

Semantic roles & 50–950 ramp

primary
#8E7D1C
secondary
#495ABD
accent
#58EA3E
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110F05
muted
#807E7A

Preview Lab

Preview with #8E7D1C

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

Preview Lab → · Contrast checker → · Palette generator →

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