#8C8E1F#8C8E1F

#8C8E1F is a light, vivid yellow. Relative luminance 0.250; OKLCH L 62.5% C 0.127 H 110.6°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8C8E1F
RGBrgb(140, 142, 31)
HSLhsl(61, 64%, 34%)
HSVhsv(61, 78%, 56%)
CMYKcmyk(1.4%, 0%, 78.2%, 44.3%)
CIE-LABlab(57.10, -14.07, 54.25)
CIE-LCHlch(57.10, 56.04, 104.54°)
OKLaboklab(62.53% -0.0446 0.1185)
OKLCHoklch(62.53% 0.127 110.6)
XYZxyz(20.7363, 25.0210, 5.0333)
Luminance0.2502 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8E1F #211F8E
analogous
#8E591F #8C8E1F #558E1F
triadic
#8C8E1F #1F8C8E #8E1F8C
tetradic
#8C8E1F #1F8E59 #211F8E #8E1F55
square
#8C8E1F #1F8E59 #211F8E #8E1F55
split-complementary
#8C8E1F #1F558E #591F8E
monochromatic
#292A09 #5A5C14 #8C8E1F #BEC02A #D6D94F

Accessibility & contrast

On white

3.50
#8C8E1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#8C8E1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8E1F
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8E1F#FFFFFF#000000##000000
##8C8E1F1.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8701
Deuteranopia (green-blind)
#9B8A29
Tritanopia (blue-blind)
#968579
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #8c8e1f;
/* rgb */ color: rgb(140, 142, 31);
/* oklch */ color: oklch(62.5% 0.127 110.6);
Tailwind
colors: {
  custom: {
    50: '#b1ae65',
    500: '#8c8e1f',
    950: '#000000',
  },
}
SCSS
$custom: #8c8e1f;
$custom-light: #b1ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8e1f",
  "rgb": {
    "r": 140,
    "g": 142,
    "b": 31
  },
  "hsl": {
    "h": 61.081,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.62531,
    "c": 0.12666,
    "h": 110.6
  },
  "luminance": 0.2502
}

Semantic roles & 50–950 ramp

primary
#8C8E1F
secondary
#4F4DBB
accent
#41E744
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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