#8F42D5#8F42D5

#8F42D5 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.2% C 0.215 H 304.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#8F42D5
RGBrgb(143, 66, 213)
HSLhsl(271, 64%, 55%)
HSVhsv(271, 69%, 84%)
CMYKcmyk(32.9%, 69%, 0%, 16.5%)
CIE-LABlab(45.00, 58.64, -62.72)
CIE-LCHlch(45.00, 85.87, 313.07°)
OKLaboklab(55.18% 0.1207 -0.1783)
OKLCHoklch(55.18% 0.215 304.1)
XYZxyz(25.2834, 14.5402, 64.4124)
Luminance0.1454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42D5 #88D542
analogous
#4642D5 #8F42D5 #D542D1
triadic
#8F42D5 #D58F42 #42D58F
tetradic
#8F42D5 #D54642 #88D542 #42D1D5
square
#8F42D5 #D54642 #88D542 #42D1D5
split-complementary
#8F42D5 #D1D542 #42D546
monochromatic
#511C80 #7028B2 #8F42D5 #AD74E0 #CAA6EB

Accessibility & contrast

On white

5.37
#8F42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#8F42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42D5
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42D5#FFFFFF#000000##FFFFFF
##8F42D51.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#826487
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f42d5;
/* rgb */ color: rgb(143, 66, 213);
/* oklch */ color: oklch(55.2% 0.215 304.1);
Tailwind
colors: {
  custom: {
    50: '#b57ce3',
    500: '#8f42d5',
    950: '#000000',
  },
}
SCSS
$custom: #8f42d5;
$custom-light: #b57ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42d5",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 271.429,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55177,
    "c": 0.21533,
    "h": 304.1
  },
  "luminance": 0.1454
}

Semantic roles & 50–950 ramp

primary
#8F42D5
secondary
#B8D89A
accent
#E74190
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8F42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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