#8E8B1F#8E8B1F

#8E8B1F is a light, vivid yellow. Relative luminance 0.243; OKLCH L 62.0% C 0.123 H 107.9°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8E8B1F
RGBrgb(142, 139, 31)
HSLhsl(58, 64%, 34%)
HSVhsv(58, 78%, 56%)
CMYKcmyk(0%, 2.1%, 78.2%, 44.3%)
CIE-LABlab(56.40, -11.56, 53.68)
CIE-LCHlch(56.40, 54.91, 102.16°)
OKLaboklab(62.02% -0.0378 0.1173)
OKLCHoklch(62.02% 0.123 107.9)
XYZxyz(20.6361, 24.3157, 4.9024)
Luminance0.2432 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E8B1F #1F228E
analogous
#8E541F #8E8B1F #5A8E1F
triadic
#8E8B1F #1F8E8B #8B1F8E
tetradic
#8E8B1F #1F8E54 #1F228E #8E1F5A
square
#8E8B1F #1F8E54 #1F228E #8E1F5A
split-complementary
#8E8B1F #1F5A8E #541F8E
monochromatic
#2A2909 #5C5A14 #8E8B1F #C0BC2A #D9D54F

Accessibility & contrast

On white

3.58
#8E8B1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.86
#8E8B1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8E8B1F
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E8B1F#FFFFFF#000000##000000
##8E8B1F1.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#978503
Deuteranopia (green-blind)
#998928
Tritanopia (blue-blind)
#998177
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #8e8b1f;
/* rgb */ color: rgb(142, 139, 31);
/* oklch */ color: oklch(62.0% 0.123 107.9);
Tailwind
colors: {
  custom: {
    50: '#b3ac64',
    500: '#8e8b1f',
    950: '#000000',
  },
}
SCSS
$custom: #8e8b1f;
$custom-light: #b3ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#8e8b1f",
  "rgb": {
    "r": 142,
    "g": 139,
    "b": 31
  },
  "hsl": {
    "h": 58.378,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.6202,
    "c": 0.12318,
    "h": 107.9
  },
  "luminance": 0.24315
}

Semantic roles & 50–950 ramp

primary
#8E8B1F
secondary
#4D50BB
accent
#45E741
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8E8B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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