#8F42DA#8F42DA

#8F42DA is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.5% C 0.221 H 303.0°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#8F42DA
RGBrgb(143, 66, 218)
HSLhsl(270, 67%, 56%)
HSVhsv(270, 70%, 85%)
CMYKcmyk(34.4%, 69.7%, 0%, 14.5%)
CIE-LABlab(45.36, 59.81, -65.01)
CIE-LCHlch(45.36, 88.33, 312.62°)
OKLaboklab(55.55% 0.12 -0.185)
OKLCHoklch(55.55% 0.221 303)
XYZxyz(25.9278, 14.7980, 67.8064)
Luminance0.1480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42DA #8DDA42
analogous
#4342DA #8F42DA #DA42D9
triadic
#8F42DA #DA8F42 #42DA8F
tetradic
#8F42DA #DA4342 #8DDA42 #42D9DA
square
#8F42DA #DA4342 #8DDA42 #42D9DA
split-complementary
#8F42DA #D9DA42 #42DA43
monochromatic
#521A87 #7024BA #8F42DA #AD75E4 #CCA8EE

Accessibility & contrast

On white

5.30
#8F42DA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8F42DA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42DA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42DA#FFFFFF#000000##FFFFFF
##8F42DA1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADE
Deuteranopia (green-blind)
#006BD7
Tritanopia (blue-blind)
#806689
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f42da;
/* rgb */ color: rgb(143, 66, 218);
/* oklch */ color: oklch(55.5% 0.221 303.0);
Tailwind
colors: {
  custom: {
    50: '#b57ce6',
    500: '#8f42da',
    950: '#000000',
  },
}
SCSS
$custom: #8f42da;
$custom-light: #b57ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42da",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 218
  },
  "hsl": {
    "h": 270.395,
    "s": 67.257,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55545,
    "c": 0.22051,
    "h": 303
  },
  "luminance": 0.14798
}

Semantic roles & 50–950 ramp

primary
#8F42DA
secondary
#BBDB9C
accent
#EA3E93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F42DA

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

Preview Lab → · Contrast checker → · Palette generator →

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