#8F42D2#8F42D2

#8F42D2 is a mid, highly saturated violet. Relative luminance 0.144; OKLCH L 55.0% C 0.212 H 304.8°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#8F42D2
RGBrgb(143, 66, 210)
HSLhsl(272, 62%, 54%)
HSVhsv(272, 69%, 82%)
CMYKcmyk(31.9%, 68.6%, 0%, 17.6%)
CIE-LABlab(44.79, 57.95, -61.35)
CIE-LCHlch(44.79, 84.39, 313.37°)
OKLaboklab(54.96% 0.1211 -0.1743)
OKLCHoklch(54.96% 0.212 304.8)
XYZxyz(24.9062, 14.3893, 62.4256)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42D2 #85D242
analogous
#4742D2 #8F42D2 #D242CD
triadic
#8F42D2 #D28F42 #42D28F
tetradic
#8F42D2 #D24742 #85D242 #42CDD2
square
#8F42D2 #D24742 #85D242 #42CDD2
split-complementary
#8F42D2 #CDD242 #42D247
monochromatic
#501E7C #7029AD #8F42D2 #AC73DE #CAA5EA

Accessibility & contrast

On white

5.42
#8F42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8F42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42D2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42D2#FFFFFF#000000##FFFFFF
##8F42D21.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#036ACF
Tritanopia (blue-blind)
#836385
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f42d2;
/* rgb */ color: rgb(143, 66, 210);
/* oklch */ color: oklch(55.0% 0.212 304.8);
Tailwind
colors: {
  custom: {
    50: '#b57ce1',
    500: '#8f42d2',
    950: '#000000',
  },
}
SCSS
$custom: #8f42d2;
$custom-light: #b57ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42d2",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 272.083,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54959,
    "c": 0.21222,
    "h": 304.8
  },
  "luminance": 0.14389
}

Semantic roles & 50–950 ramp

primary
#8F42D2
secondary
#B6D799
accent
#E5438E
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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