#8C8A18#8C8A18

#8C8A18 is a mid, vivid yellow. Relative luminance 0.238; OKLCH L 61.6% C 0.126 H 108.5°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8C8A18
RGBrgb(140, 138, 24)
HSLhsl(59, 71%, 32%)
HSVhsv(59, 83%, 55%)
CMYKcmyk(0%, 1.4%, 82.9%, 45.1%)
CIE-LABlab(55.91, -12.20, 55.32)
CIE-LCHlch(55.91, 56.65, 102.44°)
OKLaboklab(61.57% -0.04 0.1195)
OKLCHoklch(61.57% 0.126 108.5)
XYZxyz(20.0694, 23.8190, 4.4043)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8A18 #181A8C
analogous
#8C5018 #8C8A18 #548C18
triadic
#8C8A18 #188C8A #8A188C
tetradic
#8C8A18 #188C50 #181A8C #8C1854
square
#8C8A18 #188C50 #181A8C #8C1854
split-complementary
#8C8A18 #18548C #50188C
monochromatic
#242306 #58570F #8C8A18 #C0BD21 #DEDC40

Accessibility & contrast

On white

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

On black

5.76
#8C8A18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8A18
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8A18#FFFFFF#000000##000000
##8C8A181.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#988823
Tritanopia (blue-blind)
#978076
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #8c8a18;
/* rgb */ color: rgb(140, 138, 24);
/* oklch */ color: oklch(61.6% 0.126 108.5);
Tailwind
colors: {
  custom: {
    50: '#b1ab61',
    500: '#8c8a18',
    950: '#000000',
  },
}
SCSS
$custom: #8c8a18;
$custom-light: #b1ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8a18",
  "rgb": {
    "r": 140,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 58.966,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.6157,
    "c": 0.12602,
    "h": 108.5
  },
  "luminance": 0.23818
}

Semantic roles & 50–950 ramp

primary
#8C8A18
secondary
#4143BF
accent
#3DED3A
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111005
muted
#807F7A

Preview Lab

Preview with #8C8A18

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

Preview Lab → · Contrast checker → · Palette generator →

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