#8F42DB#8F42DB

#8F42DB is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.6% C 0.222 H 302.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8F42DB
RGBrgb(143, 66, 219)
HSLhsl(270, 68%, 56%)
HSVhsv(270, 70%, 86%)
CMYKcmyk(34.7%, 69.9%, 0%, 14.1%)
CIE-LABlab(45.43, 60.04, -65.46)
CIE-LCHlch(45.43, 88.82, 312.53°)
OKLaboklab(55.62% 0.1198 -0.1864)
OKLCHoklch(55.62% 0.222 302.7)
XYZxyz(26.0591, 14.8505, 68.4977)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42DB #8EDB42
analogous
#4242DB #8F42DB #DB42DA
triadic
#8F42DB #DB8F42 #42DB8F
tetradic
#8F42DB #DB4242 #8EDB42 #42DADB
square
#8F42DB #DB4242 #8EDB42 #42DADB
split-complementary
#8F42DB #DADB42 #42DB42
monochromatic
#521A89 #7024BC #8F42DB #AD75E5 #CCA9EF

Accessibility & contrast

On white

5.29
#8F42DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8F42DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42DB
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42DB#FFFFFF#000000##FFFFFF
##8F42DB1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#7F668A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f42db;
/* rgb */ color: rgb(143, 66, 219);
/* oklch */ color: oklch(55.6% 0.222 302.7);
Tailwind
colors: {
  custom: {
    50: '#b67ce7',
    500: '#8f42db',
    950: '#000000',
  },
}
SCSS
$custom: #8f42db;
$custom-light: #b67ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42db",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 219
  },
  "hsl": {
    "h": 270.196,
    "s": 68,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55619,
    "c": 0.22154,
    "h": 302.7
  },
  "luminance": 0.14851
}

Semantic roles & 50–950 ramp

primary
#8F42DB
secondary
#BCDC9D
accent
#EB3D93
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F42DB

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

Preview Lab → · Contrast checker → · Palette generator →

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