#8E781C#8E781C

#8E781C is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.7% C 0.109 H 94.7°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#8E781C
RGBrgb(142, 120, 28)
HSLhsl(48, 67%, 33%)
HSVhsv(48, 80%, 56%)
CMYKcmyk(0%, 15.5%, 80.3%, 44.3%)
CIE-LABlab(51.00, -1.22, 49.79)
CIE-LCHlch(51.00, 49.80, 91.41°)
OKLaboklab(57.72% -0.0089 0.1083)
OKLCHoklch(57.72% 0.109 94.7)
XYZxyz(18.0824, 19.2686, 3.8652)
Luminance0.1927 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E781C #1C328E
analogous
#8E3F1C #8E781C #6B8E1C
triadic
#8E781C #1C8E78 #781C8E
tetradic
#8E781C #1C8E3F #1C328E #8E1C6B
square
#8E781C #1C8E3F #1C328E #8E1C6B
split-complementary
#8E781C #1C6B8E #3F1C8E
monochromatic
#282208 #5B4D12 #8E781C #C1A326 #DBBF49

Accessibility & contrast

On white

4.33
#8E781C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#8E781C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E781C
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E781C#FFFFFF#000000##000000
##8E781C1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#867607
Deuteranopia (green-blind)
#8B7C22
Tritanopia (blue-blind)
#9A6E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e781c;
/* rgb */ color: rgb(142, 120, 28);
/* oklch */ color: oklch(57.7% 0.109 94.7);
Tailwind
colors: {
  custom: {
    50: '#b39e61',
    500: '#8e781c',
    950: '#000000',
  },
}
SCSS
$custom: #8e781c;
$custom-light: #b39e61;
$custom-dark: #000000;
JSON
{
  "hex": "#8e781c",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 48.421,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.57722,
    "c": 0.10868,
    "h": 94.7
  },
  "luminance": 0.19268
}

Semantic roles & 50–950 ramp

primary
#8E781C
secondary
#495FBD
accent
#5FEA3E
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E781C

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

Preview Lab → · Contrast checker → · Palette generator →

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