#8E8A16#8E8A16

#8E8A16 is a mid, vivid yellow. Relative luminance 0.240; OKLCH L 61.7% C 0.126 H 107.4°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8E8A16
RGBrgb(142, 138, 22)
HSLhsl(58, 73%, 32%)
HSVhsv(58, 85%, 56%)
CMYKcmyk(0%, 2.8%, 84.5%, 44.3%)
CIE-LABlab(56.07, -11.35, 56.08)
CIE-LCHlch(56.07, 57.22, 101.44°)
OKLaboklab(61.75% -0.0379 0.1207)
OKLCHoklch(61.75% 0.126 107.4)
XYZxyz(20.3895, 23.9864, 4.3147)
Luminance0.2399 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A16 #161A8E
analogous
#8E4E16 #8E8A16 #568E16
triadic
#8E8A16 #168E8A #8A168E
tetradic
#8E8A16 #168E4E #161A8E #8E1656
square
#8E8A16 #168E4E #161A8E #8E1656
split-complementary
#8E8A16 #16568E #4E168E
monochromatic
#242306 #59570E #8E8A16 #C3BD1E #E1DC3D

Accessibility & contrast

On white

3.62
#8E8A16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#8E8A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8A16
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8A16#FFFFFF#000000##000000
##8E8A161.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#998821
Tritanopia (blue-blind)
#998075
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8a16;
/* rgb */ color: rgb(142, 138, 22);
/* oklch */ color: oklch(61.7% 0.126 107.4);
Tailwind
colors: {
  custom: {
    50: '#b3ab61',
    500: '#8e8a16',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a16;
$custom-light: #b3ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a16",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 22
  },
  "hsl": {
    "h": 58,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61745,
    "c": 0.12648,
    "h": 107.4
  },
  "luminance": 0.23986
}

Semantic roles & 50–950 ramp

primary
#8E8A16
secondary
#3F43C1
accent
#3EF038
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8E8A16

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

Preview Lab → · Contrast checker → · Palette generator →

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