#8C8A20#8C8A20

#8C8A20 is a mid, vivid yellow. Relative luminance 0.239; OKLCH L 61.6% C 0.122 H 108.4°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8C8A20
RGBrgb(140, 138, 32)
HSLhsl(59, 63%, 34%)
HSVhsv(59, 77%, 55%)
CMYKcmyk(0%, 1.4%, 77.1%, 45.1%)
CIE-LABlab(55.94, -11.89, 52.86)
CIE-LCHlch(55.94, 54.18, 102.68°)
OKLaboklab(61.61% -0.0385 0.1158)
OKLCHoklch(61.61% 0.122 108.4)
XYZxyz(20.1652, 23.8574, 4.9089)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A20 #20228C
analogous
#8C5420 #8C8A20 #588C20
triadic
#8C8A20 #208C8A #8A208C
tetradic
#8C8A20 #208C54 #20228C #8C2058
square
#8C8A20 #208C54 #20228C #8C2058
split-complementary
#8C8A20 #20588C #54208C
monochromatic
#282809 #5A5915 #8C8A20 #BEBB2B #D7D450

Accessibility & contrast

On white

3.64
#8C8A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#8C8A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A20
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A20#FFFFFF#000000##000000
##8C8A201.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#968406
Deuteranopia (green-blind)
#988829
Tritanopia (blue-blind)
#968176
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a20;
/* rgb */ color: rgb(140, 138, 32);
/* oklch */ color: oklch(61.6% 0.122 108.4);
Tailwind
colors: {
  custom: {
    50: '#b1ab65',
    500: '#8c8a20',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a20;
$custom-light: #b1ab65;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a20",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 58.889,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.61613,
    "c": 0.12201,
    "h": 108.4
  },
  "luminance": 0.23857
}

Semantic roles & 50–950 ramp

primary
#8C8A20
secondary
#4E50BA
accent
#45E642
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8A20

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

Preview Lab → · Contrast checker → · Palette generator →

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