#8C8318#8C8318

#8C8318 is a mid, moderate yellow. Relative luminance 0.219; OKLCH L 60.0% C 0.119 H 104.3°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8C8318
RGBrgb(140, 131, 24)
HSLhsl(55, 71%, 32%)
HSVhsv(55, 83%, 55%)
CMYKcmyk(0%, 6.4%, 82.9%, 45.1%)
CIE-LABlab(53.89, -8.42, 53.58)
CIE-LCHlch(53.89, 54.24, 98.93°)
OKLaboklab(59.97% -0.0294 0.1157)
OKLCHoklch(59.97% 0.119 104.3)
XYZxyz(19.0973, 21.8748, 4.0803)
Luminance0.2187 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8318 #18218C
analogous
#8C4918 #8C8318 #5B8C18
triadic
#8C8318 #188C83 #83188C
tetradic
#8C8318 #188C49 #18218C #8C185B
square
#8C8318 #188C49 #18218C #8C185B
split-complementary
#8C8318 #185B8C #49188C
monochromatic
#242106 #58520F #8C8318 #C0B421 #DED240

Accessibility & contrast

On white

3.91
#8C8318 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#8C8318 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8318
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8318#FFFFFF#000000##000000
##8C83181.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#907E00
Deuteranopia (green-blind)
#928321
Tritanopia (blue-blind)
#977970
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #8c8318;
/* rgb */ color: rgb(140, 131, 24);
/* oklch */ color: oklch(60.0% 0.119 104.3);
Tailwind
colors: {
  custom: {
    50: '#b1a660',
    500: '#8c8318',
    950: '#000000',
  },
}
SCSS
$custom: #8c8318;
$custom-light: #b1a660;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8318",
  "rgb": {
    "r": 140,
    "g": 131,
    "b": 24
  },
  "hsl": {
    "h": 55.345,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59966,
    "c": 0.11943,
    "h": 104.3
  },
  "luminance": 0.21874
}

Semantic roles & 50–950 ramp

primary
#8C8318
secondary
#414BBF
accent
#48ED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#110F05
muted
#807F7A

Preview Lab

Preview with #8C8318

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

Preview Lab → · Contrast checker → · Palette generator →

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