#8F42BC#8F42BC

#8F42BC is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.4% C 0.189 H 310.6°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#8F42BC
RGBrgb(143, 66, 188)
HSLhsl(278, 48%, 50%)
HSVhsv(278, 65%, 74%)
CMYKcmyk(23.9%, 64.9%, 0%, 26.3%)
CIE-LABlab(43.31, 52.97, -50.97)
CIE-LCHlch(43.31, 73.51, 316.10°)
OKLaboklab(53.43% 0.1232 -0.1438)
OKLCHoklch(53.43% 0.189 310.6)
XYZxyz(22.3513, 13.3674, 48.9699)
Luminance0.1337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42BC #6FBC42
analogous
#5242BC #8F42BC #BC42AC
triadic
#8F42BC #BC8F42 #42BC8F
tetradic
#8F42BC #BC5242 #6FBC42 #42ACBC
square
#8F42BC #BC5242 #6FBC42 #42ACBC
split-complementary
#8F42BC #ACBC42 #42BC52
monochromatic
#4A2261 #6D328F #8F42BC #AA6FCC #C59CDC

Accessibility & contrast

On white

5.72
#8F42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8F42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42BC
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42BC#FFFFFF#000000##FFFFFF
##8F42BC1.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#3368B9
Tritanopia (blue-blind)
#895A79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f42bc;
/* rgb */ color: rgb(143, 66, 188);
/* oklch */ color: oklch(53.4% 0.189 310.6);
Tailwind
colors: {
  custom: {
    50: '#b37bd1',
    500: '#8f42bc',
    950: '#000000',
  },
}
SCSS
$custom: #8f42bc;
$custom-light: #b37bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42bc",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 277.869,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53433,
    "c": 0.18937,
    "h": 310.6
  },
  "luminance": 0.13367
}

Semantic roles & 50–950 ramp

primary
#8F42BC
secondary
#A6C991
accent
#D85082
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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