#8C42DD#8C42DD

#8C42DD is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.223 H 301.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8C42DD
RGBrgb(140, 66, 221)
HSLhsl(269, 70%, 56%)
HSVhsv(269, 70%, 87%)
CMYKcmyk(36.7%, 70.1%, 0%, 13.3%)
CIE-LABlab(45.21, 59.95, -66.97)
CIE-LCHlch(45.21, 89.89, 311.83°)
OKLaboklab(55.43% 0.1154 -0.1909)
OKLCHoklch(55.43% 0.223 301.2)
XYZxyz(25.8114, 14.6922, 69.8686)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C42DD #93DD42
analogous
#4246DD #8C42DD #DA42DD
triadic
#8C42DD #DD8C42 #42DD8C
tetradic
#8C42DD #DD4246 #93DD42 #42DDDA
square
#8C42DD #DD4246 #93DD42 #42DDDA
split-complementary
#8C42DD #DDDA42 #46DD42
monochromatic
#50198C #6D22BF #8C42DD #AC76E6 #CBAAF0

Accessibility & contrast

On white

5.33
#8C42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8C42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C42DD
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C42DD#FFFFFF#000000##FFFFFF
##8C42DD1.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE2
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#7A678B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8c42dd;
/* rgb */ color: rgb(140, 66, 221);
/* oklch */ color: oklch(55.4% 0.223 301.2);
Tailwind
colors: {
  custom: {
    50: '#b47ce9',
    500: '#8c42dd',
    950: '#000000',
  },
}
SCSS
$custom: #8c42dd;
$custom-light: #b47ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#8c42dd",
  "rgb": {
    "r": 140,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 268.645,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55429,
    "c": 0.22308,
    "h": 301.2
  },
  "luminance": 0.14692
}

Semantic roles & 50–950 ramp

primary
#8C42DD
secondary
#BFDD9D
accent
#EC3B98
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8C42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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