#8C8018#8C8018

#8C8018 is a mid, moderate yellow. Relative luminance 0.211; OKLCH L 59.3% C 0.117 H 102.3°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8C8018
RGBrgb(140, 128, 24)
HSLhsl(54, 71%, 32%)
HSVhsv(54, 83%, 55%)
CMYKcmyk(0%, 8.6%, 82.9%, 45.1%)
CIE-LABlab(53.04, -6.77, 52.83)
CIE-LCHlch(53.04, 53.27, 97.30°)
OKLaboklab(59.29% -0.0248 0.1141)
OKLCHoklch(59.29% 0.117 102.3)
XYZxyz(18.7002, 21.0806, 3.9479)
Luminance0.2108 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8018 #18248C
analogous
#8C4618 #8C8018 #5E8C18
triadic
#8C8018 #188C80 #80188C
tetradic
#8C8018 #188C46 #18248C #8C185E
square
#8C8018 #188C46 #18248C #8C185E
split-complementary
#8C8018 #185E8C #46188C
monochromatic
#242006 #58500F #8C8018 #C0B021 #DECE40

Accessibility & contrast

On white

4.03
#8C8018 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#8C8018 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8018
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8018#FFFFFF#000000##000000
##8C80181.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8D7C00
Deuteranopia (green-blind)
#908121
Tritanopia (blue-blind)
#97766D
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #8c8018;
/* rgb */ color: rgb(140, 128, 24);
/* oklch */ color: oklch(59.3% 0.117 102.3);
Tailwind
colors: {
  custom: {
    50: '#b1a460',
    500: '#8c8018',
    950: '#000000',
  },
}
SCSS
$custom: #8c8018;
$custom-light: #b1a460;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8018",
  "rgb": {
    "r": 140,
    "g": 128,
    "b": 24
  },
  "hsl": {
    "h": 53.793,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59285,
    "c": 0.1168,
    "h": 102.3
  },
  "luminance": 0.2108
}

Semantic roles & 50–950 ramp

primary
#8C8018
secondary
#414EBF
accent
#4DED3A
background
#FBFAF5
surface
#F6F3EA
border
#D0CDC6
text
#110F05
muted
#807F79

Preview Lab

Preview with #8C8018

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

Preview Lab → · Contrast checker → · Palette generator →

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