#8F42CF#8F42CF

#8F42CF is a mid, highly saturated violet. Relative luminance 0.142; OKLCH L 54.7% C 0.209 H 305.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#8F42CF
RGBrgb(143, 66, 207)
HSLhsl(273, 59%, 54%)
HSVhsv(273, 68%, 81%)
CMYKcmyk(30.9%, 68.1%, 0%, 18.8%)
CIE-LABlab(44.58, 57.26, -59.96)
CIE-LCHlch(44.58, 82.91, 313.68°)
OKLaboklab(54.74% 0.1215 -0.1702)
OKLCHoklch(54.74% 0.209 305.5)
XYZxyz(24.5359, 14.2412, 60.4756)
Luminance0.1424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42CF #82CF42
analogous
#4842CF #8F42CF #CF42C8
triadic
#8F42CF #CF8F42 #42CF8F
tetradic
#8F42CF #CF4842 #82CF42 #42C8CF
square
#8F42CF #CF4842 #82CF42 #42C8CF
split-complementary
#8F42CF #C8CF42 #42CF48
monochromatic
#4F1F78 #702BA9 #8F42CF #AC73DB #C9A4E8

Accessibility & contrast

On white

5.46
#8F42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#8F42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42CF
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42CF#FFFFFF#000000##FFFFFF
##8F42CF1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D3
Deuteranopia (green-blind)
#116ACC
Tritanopia (blue-blind)
#846283
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f42cf;
/* rgb */ color: rgb(143, 66, 207);
/* oklch */ color: oklch(54.7% 0.209 305.5);
Tailwind
colors: {
  custom: {
    50: '#b57cde',
    500: '#8f42cf',
    950: '#000000',
  },
}
SCSS
$custom: #8f42cf;
$custom-light: #b57cde;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42cf",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 272.766,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54743,
    "c": 0.2091,
    "h": 305.5
  },
  "luminance": 0.14241
}

Semantic roles & 50–950 ramp

primary
#8F42CF
secondary
#B4D598
accent
#E3458D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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