#8C8F18#8C8F18

#8C8F18 is a light, vivid yellow. Relative luminance 0.253; OKLCH L 62.7% C 0.131 H 111.2°. Best body text is #000000 at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8C8F18
RGBrgb(140, 143, 24)
HSLhsl(62, 71%, 33%)
HSVhsv(62, 83%, 56%)
CMYKcmyk(2.1%, 0%, 83.2%, 43.9%)
CIE-LABlab(57.35, -14.86, 56.57)
CIE-LCHlch(57.35, 58.49, 104.71°)
OKLaboklab(62.73% -0.0474 0.1222)
OKLCHoklch(62.73% 0.131 111.2)
XYZxyz(20.8033, 25.2869, 4.6490)
Luminance0.2529 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C8F18 #1B188F
analogous
#8F5718 #8C8F18 #508F18
triadic
#8C8F18 #188C8F #8F188C
tetradic
#8C8F18 #188F57 #1B188F #8F1850
square
#8C8F18 #188F57 #1B188F #8F1850
split-complementary
#8C8F18 #18508F #57188F
monochromatic
#252606 #595B0F #8C8F18 #BFC321 #DBDF42

Accessibility & contrast

On white

3.47
#8C8F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.06
#8C8F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8C8F18
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C8F18#FFFFFF#000000##000000
##8C8F181.003.476.066.06
#FFFFFF3.471.0021.0021.00
#0000006.0621.001.001.00
##0000006.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#9B8800
Deuteranopia (green-blind)
#9C8B24
Tritanopia (blue-blind)
#96857A
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #8c8f18;
/* rgb */ color: rgb(140, 143, 24);
/* oklch */ color: oklch(62.7% 0.131 111.2);
Tailwind
colors: {
  custom: {
    50: '#b1af62',
    500: '#8c8f18',
    950: '#000000',
  },
}
SCSS
$custom: #8c8f18;
$custom-light: #b1af62;
$custom-dark: #000000;
JSON
{
  "hex": "#8c8f18",
  "rgb": {
    "r": 140,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 61.513,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.62728,
    "c": 0.13106,
    "h": 111.2
  },
  "luminance": 0.25286
}

Semantic roles & 50–950 ramp

primary
#8C8F18
secondary
#4643C0
accent
#3AEE3E
background
#FBFAF6
surface
#F6F4EB
border
#D0CEC6
text
#111006
muted
#807F7A

Preview Lab

Preview with #8C8F18

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

Preview Lab → · Contrast checker → · Palette generator →

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