#8C8F2A#8C8F2A

#8C8F2A is a light, vivid yellow. Relative luminance 0.254; OKLCH L 62.8% C 0.121 H 111.1°. Best body text is #000000 at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8C8F2A
RGBrgb(140, 143, 42)
HSLhsl(62, 55%, 36%)
HSVhsv(62, 71%, 56%)
CMYKcmyk(2.1%, 0%, 70.6%, 43.9%)
CIE-LABlab(57.45, -14.06, 50.61)
CIE-LCHlch(57.45, 52.53, 105.53°)
OKLaboklab(62.84% -0.0436 0.1129)
OKLCHoklch(62.84% 0.121 111.1)
XYZxyz(21.0563, 25.3881, 5.9812)
Luminance0.2539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8F2A #2D2A8F
analogous
#8F602A #8C8F2A #5A8F2A
triadic
#8C8F2A #2A8C8F #8F2A8C
tetradic
#8C8F2A #2A8F60 #2D2A8F #8F2A5A
square
#8C8F2A #2A8F60 #2D2A8F #8F2A5A
split-complementary
#8C8F2A #2A5A8F #602A8F
monochromatic
#2F300E #5E601C #8C8F2A #BABE38 #CED162

Accessibility & contrast

On white

3.46
#8C8F2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.08
#8C8F2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8F2A
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8F2A#FFFFFF#000000##000000
##8C8F2A1.003.466.086.08
#FFFFFF3.461.0021.0021.00
#0000006.0821.001.001.00
##0000006.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A891A
Deuteranopia (green-blind)
#9B8B31
Tritanopia (blue-blind)
#96867B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8c8f2a;
/* rgb */ color: rgb(140, 143, 42);
/* oklch */ color: oklch(62.8% 0.121 111.1);
Tailwind
colors: {
  custom: {
    50: '#b1af6a',
    500: '#8c8f2a',
    950: '#000000',
  },
}
SCSS
$custom: #8c8f2a;
$custom-light: #b1af6a;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8f2a",
  "rgb": {
    "r": 140,
    "g": 143,
    "b": 42
  },
  "hsl": {
    "h": 61.782,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.62837,
    "c": 0.121,
    "h": 111.1
  },
  "luminance": 0.25388
}

Semantic roles & 50–950 ramp

primary
#8C8F2A
secondary
#605EB7
accent
#4ADE4E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111007
muted
#807F7A

Preview Lab

Preview with #8C8F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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