#8E8316#8E8316

#8E8316 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 60.1% C 0.120 H 103.1°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#8E8316
RGBrgb(142, 131, 22)
HSLhsl(55, 73%, 32%)
HSVhsv(55, 85%, 56%)
CMYKcmyk(0%, 7.7%, 84.5%, 44.3%)
CIE-LABlab(54.07, -7.55, 54.38)
CIE-LCHlch(54.07, 54.90, 97.91°)
OKLaboklab(60.15% -0.0273 0.117)
OKLCHoklch(60.15% 0.12 103.1)
XYZxyz(19.4174, 22.0422, 3.9907)
Luminance0.2204 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8316 #16218E
analogous
#8E4716 #8E8316 #5D8E16
triadic
#8E8316 #168E83 #83168E
tetradic
#8E8316 #168E47 #16218E #8E165D
square
#8E8316 #168E47 #16218E #8E165D
split-complementary
#8E8316 #165D8E #47168E
monochromatic
#242106 #59520E #8E8316 #C3B41E #E1D23D

Accessibility & contrast

On white

3.88
#8E8316 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#8E8316 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8316
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8316#FFFFFF#000000##000000
##8E83161.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#938320
Tritanopia (blue-blind)
#997970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8e8316;
/* rgb */ color: rgb(142, 131, 22);
/* oklch */ color: oklch(60.1% 0.120 103.1);
Tailwind
colors: {
  custom: {
    50: '#b3a660',
    500: '#8e8316',
    950: '#000000',
  },
}
SCSS
$custom: #8e8316;
$custom-light: #b3a660;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8316",
  "rgb": {
    "r": 142,
    "g": 131,
    "b": 22
  },
  "hsl": {
    "h": 54.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60149,
    "c": 0.12012,
    "h": 103.1
  },
  "luminance": 0.22041
}

Semantic roles & 50–950 ramp

primary
#8E8316
secondary
#3F4BC1
accent
#49F038
background
#FBFAF5
surface
#F6F4EA
border
#D0CEC6
text
#120F05
muted
#817F79

Preview Lab

Preview with #8E8316

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

Preview Lab → · Contrast checker → · Palette generator →

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