#8F42D3#8F42D3

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

Color values

HEX#8F42D3
RGBrgb(143, 66, 211)
HSLhsl(272, 62%, 54%)
HSVhsv(272, 69%, 83%)
CMYKcmyk(32.2%, 68.7%, 0%, 17.3%)
CIE-LABlab(44.86, 58.18, -61.81)
CIE-LCHlch(44.86, 84.88, 313.27°)
OKLaboklab(55.03% 0.121 -0.1756)
OKLCHoklch(55.03% 0.213 304.6)
XYZxyz(25.0311, 14.4393, 63.0838)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42D3 #86D342
analogous
#4742D3 #8F42D3 #D342CF
triadic
#8F42D3 #D38F42 #42D38F
tetradic
#8F42D3 #D34742 #86D342 #42CFD3
square
#8F42D3 #D34742 #86D342 #42CFD3
split-complementary
#8F42D3 #CFD342 #42D347
monochromatic
#501D7D #7029AF #8F42D3 #AC74DF #CAA5EA

Accessibility & contrast

On white

5.40
#8F42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8F42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42D3
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42D3#FFFFFF#000000##FFFFFF
##8F42D31.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#826386
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f42d3;
/* rgb */ color: rgb(143, 66, 211);
/* oklch */ color: oklch(55.0% 0.213 304.6);
Tailwind
colors: {
  custom: {
    50: '#b57ce1',
    500: '#8f42d3',
    950: '#000000',
  },
}
SCSS
$custom: #8f42d3;
$custom-light: #b57ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42d3",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 271.862,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.55031,
    "c": 0.21326,
    "h": 304.6
  },
  "luminance": 0.14439
}

Semantic roles & 50–950 ramp

primary
#8F42D3
secondary
#B6D79A
accent
#E5428F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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