#8E7918#8E7918

#8E7918 is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.9% C 0.111 H 95.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#8E7918
RGBrgb(142, 121, 24)
HSLhsl(49, 71%, 33%)
HSVhsv(49, 83%, 56%)
CMYKcmyk(0%, 14.8%, 83.1%, 44.3%)
CIE-LABlab(51.26, -1.93, 51.36)
CIE-LCHlch(51.26, 51.39, 92.16°)
OKLaboklab(57.92% -0.0113 0.1108)
OKLCHoklch(57.92% 0.111 95.8)
XYZxyz(18.1586, 19.4925, 3.6700)
Luminance0.1949 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7918 #182D8E
analogous
#8E3E18 #8E7918 #688E18
triadic
#8E7918 #188E79 #79188E
tetradic
#8E7918 #188E3E #182D8E #8E1868
square
#8E7918 #188E3E #182D8E #8E1868
split-complementary
#8E7918 #18688E #3E188E
monochromatic
#252006 #5A4C0F #8E7918 #C2A621 #DFC341

Accessibility & contrast

On white

4.29
#8E7918 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#8E7918 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7918
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7918#FFFFFF#000000##000000
##8E79181.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#877600
Deuteranopia (green-blind)
#8C7D1F
Tritanopia (blue-blind)
#9A6F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e7918;
/* rgb */ color: rgb(142, 121, 24);
/* oklch */ color: oklch(57.9% 0.111 95.8);
Tailwind
colors: {
  custom: {
    50: '#b39f5f',
    500: '#8e7918',
    950: '#000000',
  },
}
SCSS
$custom: #8e7918;
$custom-light: #b39f5f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7918",
  "rgb": {
    "r": 142,
    "g": 121,
    "b": 24
  },
  "hsl": {
    "h": 49.322,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.1114,
    "h": 95.8
  },
  "luminance": 0.19491
}

Semantic roles & 50–950 ramp

primary
#8E7918
secondary
#4258C0
accent
#5AEE3A
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7918

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

Preview Lab → · Contrast checker → · Palette generator →

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