#8E781F#8E781F

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

Color values

HEX#8E781F
RGBrgb(142, 120, 31)
HSLhsl(48, 64%, 34%)
HSVhsv(48, 78%, 56%)
CMYKcmyk(0%, 15.5%, 78.2%, 44.3%)
CIE-LABlab(51.02, -1.10, 48.71)
CIE-LCHlch(51.02, 48.72, 91.29°)
OKLaboklab(57.74% -0.0083 0.1067)
OKLCHoklch(57.74% 0.107 94.4)
XYZxyz(18.1201, 19.2837, 4.0638)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E781F #1F358E
analogous
#8E411F #8E781F #6D8E1F
triadic
#8E781F #1F8E78 #781F8E
tetradic
#8E781F #1F8E41 #1F358E #8E1F6D
square
#8E781F #1F8E41 #1F358E #8E1F6D
split-complementary
#8E781F #1F6D8E #411F8E
monochromatic
#2A2309 #5C4E14 #8E781F #C0A22A #D9BD4F

Accessibility & contrast

On white

4.32
#8E781F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#8E781F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E781F
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E781F#FFFFFF#000000##000000
##8E781F1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#85760E
Deuteranopia (green-blind)
#8B7C25
Tritanopia (blue-blind)
#9A6E67
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #8e781f;
/* rgb */ color: rgb(142, 120, 31);
/* oklch */ color: oklch(57.7% 0.107 94.4);
Tailwind
colors: {
  custom: {
    50: '#b39e62',
    500: '#8e781f',
    950: '#000000',
  },
}
SCSS
$custom: #8e781f;
$custom-light: #b39e62;
$custom-dark: #000000;
JSON
{
  "hex": "#8e781f",
  "rgb": {
    "r": 142,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 48.108,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57742,
    "c": 0.10697,
    "h": 94.4
  },
  "luminance": 0.19283
}

Semantic roles & 50–950 ramp

primary
#8E781F
secondary
#4D63BB
accent
#62E741
background
#FBF9F6
surface
#F6F2EB
border
#D0CCC6
text
#110E05
muted
#807E7A

Preview Lab

Preview with #8E781F

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

Preview Lab → · Contrast checker → · Palette generator →

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