#8F42D8#8F42D8

#8F42D8 is a mid, highly saturated violet. Relative luminance 0.147; OKLCH L 55.4% C 0.218 H 303.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8F42D8
RGBrgb(143, 66, 216)
HSLhsl(271, 66%, 55%)
HSVhsv(271, 69%, 85%)
CMYKcmyk(33.8%, 69.4%, 0%, 15.3%)
CIE-LABlab(45.21, 59.34, -64.10)
CIE-LCHlch(45.21, 87.35, 312.79°)
OKLaboklab(55.4% 0.1203 -0.1824)
OKLCHoklch(55.4% 0.218 303.4)
XYZxyz(25.6677, 14.6940, 66.4364)
Luminance0.1469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42D8 #8BD842
analogous
#4442D8 #8F42D8 #D842D6
triadic
#8F42D8 #D88F42 #42D88F
tetradic
#8F42D8 #D84442 #8BD842 #42D6D8
square
#8F42D8 #D84442 #8BD842 #42D6D8
split-complementary
#8F42D8 #D6D842 #42D844
monochromatic
#511B84 #7026B7 #8F42D8 #AD75E2 #CBA7ED

Accessibility & contrast

On white

5.33
#8F42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8F42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42D8
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42D8#FFFFFF#000000##FFFFFF
##8F42D81.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#816588
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f42d8;
/* rgb */ color: rgb(143, 66, 216);
/* oklch */ color: oklch(55.4% 0.218 303.4);
Tailwind
colors: {
  custom: {
    50: '#b57ce5',
    500: '#8f42d8',
    950: '#000000',
  },
}
SCSS
$custom: #8f42d8;
$custom-light: #b57ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42d8",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 270.8,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55397,
    "c": 0.21844,
    "h": 303.4
  },
  "luminance": 0.14694
}

Semantic roles & 50–950 ramp

primary
#8F42D8
secondary
#BADA9C
accent
#E93F92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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