#8E8A1D#8E8A1D

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

Color values

HEX#8E8A1D
RGBrgb(142, 138, 29)
HSLhsl(58, 66%, 34%)
HSVhsv(58, 80%, 56%)
CMYKcmyk(0%, 2.8%, 79.6%, 44.3%)
CIE-LABlab(56.10, -11.11, 54.06)
CIE-LCHlch(56.10, 55.19, 101.61°)
OKLaboklab(61.78% -0.0367 0.1177)
OKLCHoklch(61.78% 0.123 107.3)
XYZxyz(20.4664, 24.0172, 4.7199)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8A1D #1D218E
analogous
#8E511D #8E8A1D #598E1D
triadic
#8E8A1D #1D8E8A #8A1D8E
tetradic
#8E8A1D #1D8E51 #1D218E #8E1D59
square
#8E8A1D #1D8E51 #1D218E #8E1D59
split-complementary
#8E8A1D #1D598E #511D8E
monochromatic
#282708 #5B5913 #8E8A1D #C1BB27 #DAD54B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8E8A1D#FFFFFF#000000##000000
##8E8A1D1.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)
#988826
Tritanopia (blue-blind)
#998076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8e8a1d;
/* rgb */ color: rgb(142, 138, 29);
/* oklch */ color: oklch(61.8% 0.123 107.3);
Tailwind
colors: {
  custom: {
    50: '#b3ab63',
    500: '#8e8a1d',
    950: '#000000',
  },
}
SCSS
$custom: #8e8a1d;
$custom-light: #b3ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8a1d",
  "rgb": {
    "r": 142,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 57.876,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.61779,
    "c": 0.12325,
    "h": 107.3
  },
  "luminance": 0.24016
}

Semantic roles & 50–950 ramp

primary
#8E8A1D
secondary
#4A4EBD
accent
#45E93F
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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