#8F42C7#8F42C7

#8F42C7 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.201 H 307.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8F42C7
RGBrgb(143, 66, 199)
HSLhsl(275, 54%, 52%)
HSVhsv(275, 67%, 78%)
CMYKcmyk(28.1%, 66.8%, 0%, 22%)
CIE-LABlab(44.03, 55.43, -56.22)
CIE-LCHlch(44.03, 78.95, 314.60°)
OKLaboklab(54.18% 0.1224 -0.1592)
OKLCHoklch(54.18% 0.201 307.6)
XYZxyz(23.5826, 13.8599, 55.4546)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42C7 #7AC742
analogous
#4D42C7 #8F42C7 #C742BD
triadic
#8F42C7 #C78F42 #42C78F
tetradic
#8F42C7 #C74D42 #7AC742 #42BDC7
square
#8F42C7 #C74D42 #7AC742 #42BDC7
split-complementary
#8F42C7 #BDC742 #42C74D
monochromatic
#4D216E #6F2F9D #8F42C7 #AB71D5 #C7A0E3

Accessibility & contrast

On white

5.57
#8F42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8F42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42C7
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42C7#FFFFFF#000000##FFFFFF
##8F42C71.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CB
Deuteranopia (green-blind)
#2469C4
Tritanopia (blue-blind)
#865F7F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f42c7;
/* rgb */ color: rgb(143, 66, 199);
/* oklch */ color: oklch(54.2% 0.201 307.6);
Tailwind
colors: {
  custom: {
    50: '#b47cd9',
    500: '#8f42c7',
    950: '#000000',
  },
}
SCSS
$custom: #8f42c7;
$custom-light: #b47cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42c7",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 274.737,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.5418,
    "c": 0.20079,
    "h": 307.6
  },
  "luminance": 0.1386
}

Semantic roles & 50–950 ramp

primary
#8F42C7
secondary
#AED095
accent
#DE4A88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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