#8F42DC#8F42DC

#8F42DC is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.7% C 0.223 H 302.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#8F42DC
RGBrgb(143, 66, 220)
HSLhsl(270, 69%, 56%)
HSVhsv(270, 70%, 86%)
CMYKcmyk(35%, 70%, 0%, 13.7%)
CIE-LABlab(45.50, 60.28, -65.91)
CIE-LCHlch(45.50, 89.32, 312.44°)
OKLaboklab(55.69% 0.1196 -0.1877)
OKLCHoklch(55.69% 0.223 302.5)
XYZxyz(26.1911, 14.9033, 69.1931)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42DC #8FDC42
analogous
#4242DC #8F42DC #DC42DC
triadic
#8F42DC #DC8F42 #42DC8F
tetradic
#8F42DC #DC4242 #8FDC42 #42DCDC
square
#8F42DC #DC4242 #8FDC42 #42DCDC
split-complementary
#8F42DC #DCDC42 #42DC42
monochromatic
#521A8A #7023BE #8F42DC #AE76E6 #CCA9EF

Accessibility & contrast

On white

5.28
#8F42DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#8F42DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42DC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42DC#FFFFFF#000000##FFFFFF
##8F42DC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE1
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#7F678B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f42dc;
/* rgb */ color: rgb(143, 66, 220);
/* oklch */ color: oklch(55.7% 0.223 302.5);
Tailwind
colors: {
  custom: {
    50: '#b67ce8',
    500: '#8f42dc',
    950: '#000000',
  },
}
SCSS
$custom: #8f42dc;
$custom-light: #b67ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42dc",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 220
  },
  "hsl": {
    "h": 270,
    "s": 68.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55694,
    "c": 0.22258,
    "h": 302.5
  },
  "luminance": 0.14903
}

Semantic roles & 50–950 ramp

primary
#8F42DC
secondary
#BDDD9D
accent
#EC3C94
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F42DC

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

Preview Lab → · Contrast checker → · Palette generator →

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