#8E7915#8E7915

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

Color values

HEX#8E7915
RGBrgb(142, 121, 21)
HSLhsl(50, 74%, 32%)
HSVhsv(50, 85%, 56%)
CMYKcmyk(0%, 14.8%, 85.2%, 44.3%)
CIE-LABlab(51.24, -2.03, 52.26)
CIE-LCHlch(51.24, 52.30, 92.23°)
OKLaboklab(57.9% -0.0119 0.1121)
OKLCHoklch(57.9% 0.113 96)
XYZxyz(18.1291, 19.4807, 3.5146)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7915 #152A8E
analogous
#8E3D15 #8E7915 #678E15
triadic
#8E7915 #158E79 #79158E
tetradic
#8E7915 #158E3D #152A8E #8E1567
square
#8E7915 #158E3D #152A8E #8E1567
split-complementary
#8E7915 #15678E #3D158E
monochromatic
#231E05 #594C0D #8E7915 #C3A61D #E2C53B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E7915#FFFFFF#000000##000000
##8E79151.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)
#8C7D1D
Tritanopia (blue-blind)
#9A6F67
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #8e7915;
/* rgb */ color: rgb(142, 121, 21);
/* oklch */ color: oklch(57.9% 0.113 96.0);
Tailwind
colors: {
  custom: {
    50: '#b39f5e',
    500: '#8e7915',
    950: '#000000',
  },
}
SCSS
$custom: #8e7915;
$custom-light: #b39f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7915",
  "rgb": {
    "r": 142,
    "g": 121,
    "b": 21
  },
  "hsl": {
    "h": 49.587,
    "s": 74.233,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57905,
    "c": 0.11277,
    "h": 96
  },
  "luminance": 0.1948
}

Semantic roles & 50–950 ramp

primary
#8E7915
secondary
#3D54C2
accent
#57F137
background
#FBF9F5
surface
#F6F2E9
border
#D0CCC5
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7915

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

Preview Lab → · Contrast checker → · Palette generator →

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