#8C8218#8C8218

#8C8218 is a mid, moderate yellow. Relative luminance 0.216; OKLCH L 59.7% C 0.119 H 103.6°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8C8218
RGBrgb(140, 130, 24)
HSLhsl(55, 71%, 32%)
HSVhsv(55, 83%, 55%)
CMYKcmyk(0%, 7.1%, 82.9%, 45.1%)
CIE-LABlab(53.61, -7.87, 53.33)
CIE-LCHlch(53.61, 53.91, 98.39°)
OKLaboklab(59.74% -0.0279 0.1152)
OKLCHoklch(59.74% 0.119 103.6)
XYZxyz(18.9636, 21.6075, 4.0357)
Luminance0.2161 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8218 #18228C
analogous
#8C4818 #8C8218 #5C8C18
triadic
#8C8218 #188C82 #82188C
tetradic
#8C8218 #188C48 #18228C #8C185C
square
#8C8218 #188C48 #18228C #8C185C
split-complementary
#8C8218 #185C8C #48188C
monochromatic
#242106 #58510F #8C8218 #C0B321 #DED140

Accessibility & contrast

On white

3.95
#8C8218 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#8C8218 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8218
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8218#FFFFFF#000000##000000
##8C82181.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7D00
Deuteranopia (green-blind)
#928221
Tritanopia (blue-blind)
#97786F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #8c8218;
/* rgb */ color: rgb(140, 130, 24);
/* oklch */ color: oklch(59.7% 0.119 103.6);
Tailwind
colors: {
  custom: {
    50: '#b1a660',
    500: '#8c8218',
    950: '#000000',
  },
}
SCSS
$custom: #8c8218;
$custom-light: #b1a660;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8218",
  "rgb": {
    "r": 140,
    "g": 130,
    "b": 24
  },
  "hsl": {
    "h": 54.828,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59739,
    "c": 0.11854,
    "h": 103.6
  },
  "luminance": 0.21607
}

Semantic roles & 50–950 ramp

primary
#8C8218
secondary
#414CBF
accent
#4AED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C8218

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

Preview Lab → · Contrast checker → · Palette generator →

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