#8F42BB#8F42BB

#8F42BB is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.4% C 0.188 H 310.9°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8F42BB
RGBrgb(143, 66, 187)
HSLhsl(278, 48%, 50%)
HSVhsv(278, 65%, 73%)
CMYKcmyk(23.5%, 64.7%, 0%, 26.7%)
CIE-LABlab(43.25, 52.75, -50.49)
CIE-LCHlch(43.25, 73.02, 316.25°)
OKLaboklab(53.37% 0.1233 -0.1424)
OKLCHoklch(53.37% 0.188 310.9)
XYZxyz(22.2439, 13.3244, 48.4042)
Luminance0.1332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42BB #6EBB42
analogous
#5342BB #8F42BB #BB42AB
triadic
#8F42BB #BB8F42 #42BB8F
tetradic
#8F42BB #BB5342 #6EBB42 #42ABBB
square
#8F42BB #BB5342 #6EBB42 #42ABBB
split-complementary
#8F42BB #ABBB42 #42BB53
monochromatic
#4A2261 #6C328E #8F42BB #AA6ECC #C49CDC

Accessibility & contrast

On white

5.73
#8F42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8F42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42BB
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42BB#FFFFFF#000000##FFFFFF
##8F42BB1.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#3468B8
Tritanopia (blue-blind)
#895A79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f42bb;
/* rgb */ color: rgb(143, 66, 187);
/* oklch */ color: oklch(53.4% 0.188 310.9);
Tailwind
colors: {
  custom: {
    50: '#b37bd0',
    500: '#8f42bb',
    950: '#000000',
  },
}
SCSS
$custom: #8f42bb;
$custom-light: #b37bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42bb",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 278.182,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53366,
    "c": 0.18833,
    "h": 310.9
  },
  "luminance": 0.13324
}

Semantic roles & 50–950 ramp

primary
#8F42BB
secondary
#A5C891
accent
#D75081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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