#8E7C16#8E7C16

#8E7C16 is a mid, moderate yellow. Relative luminance 0.202; OKLCH L 58.6% C 0.114 H 98.3°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#8E7C16
RGBrgb(142, 124, 22)
HSLhsl(51, 73%, 32%)
HSVhsv(51, 85%, 56%)
CMYKcmyk(0%, 12.7%, 84.5%, 44.3%)
CIE-LABlab(52.09, -3.68, 52.69)
CIE-LCHlch(52.09, 52.82, 94.00°)
OKLaboklab(58.58% -0.0164 0.1133)
OKLCHoklch(58.58% 0.114 98.3)
XYZxyz(18.5088, 20.2250, 3.6878)
Luminance0.2022 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E7C16 #16288E
analogous
#8E4016 #8E7C16 #648E16
triadic
#8E7C16 #168E7C #7C168E
tetradic
#8E7C16 #168E40 #16288E #8E1664
square
#8E7C16 #168E40 #16288E #8E1664
split-complementary
#8E7C16 #16648E #40168E
monochromatic
#241F06 #594E0E #8E7C16 #C3AA1E #E1C83D

Accessibility & contrast

On white

4.16
#8E7C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#8E7C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E7C16
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E7C16#FFFFFF#000000##000000
##8E7C161.004.165.045.04
#FFFFFF4.161.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#897900
Deuteranopia (green-blind)
#8E7F1E
Tritanopia (blue-blind)
#9A726A
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #8e7c16;
/* rgb */ color: rgb(142, 124, 22);
/* oklch */ color: oklch(58.6% 0.114 98.3);
Tailwind
colors: {
  custom: {
    50: '#b3a15f',
    500: '#8e7c16',
    950: '#000000',
  },
}
SCSS
$custom: #8e7c16;
$custom-light: #b3a15f;
$custom-dark: #000000;
JSON
{
  "hex": "#8e7c16",
  "rgb": {
    "r": 142,
    "g": 124,
    "b": 22
  },
  "hsl": {
    "h": 51,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.58576,
    "c": 0.11448,
    "h": 98.3
  },
  "luminance": 0.20224
}

Semantic roles & 50–950 ramp

primary
#8E7C16
secondary
#3F52C1
accent
#54F038
background
#FBF9F5
surface
#F6F2EA
border
#D0CCC6
text
#120E05
muted
#817E79

Preview Lab

Preview with #8E7C16

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

Preview Lab → · Contrast checker → · Palette generator →

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