#8F42DD#8F42DD

#8F42DD is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.8% C 0.224 H 302.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8F42DD
RGBrgb(143, 66, 221)
HSLhsl(270, 70%, 56%)
HSVhsv(270, 70%, 87%)
CMYKcmyk(35.3%, 70.1%, 0%, 13.3%)
CIE-LABlab(45.57, 60.51, -66.36)
CIE-LCHlch(45.57, 89.81, 312.36°)
OKLaboklab(55.77% 0.1195 -0.189)
OKLCHoklch(55.77% 0.224 302.3)
XYZxyz(26.3240, 14.9565, 69.8926)
Luminance0.1496 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42DD #90DD42
analogous
#4243DD #8F42DD #DC42DD
triadic
#8F42DD #DD8F42 #42DD8F
tetradic
#8F42DD #DD4243 #90DD42 #42DDDC
square
#8F42DD #DD4243 #90DD42 #42DDDC
split-complementary
#8F42DD #DDDC42 #43DD42
monochromatic
#52198C #7022BF #8F42DD #AE76E6 #CCAAF0

Accessibility & contrast

On white

5.26
#8F42DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8F42DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42DD
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42DD#FFFFFF#000000##FFFFFF
##8F42DD1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE2
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#7F678B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f42dd;
/* rgb */ color: rgb(143, 66, 221);
/* oklch */ color: oklch(55.8% 0.224 302.3);
Tailwind
colors: {
  custom: {
    50: '#b67ce9',
    500: '#8f42dd',
    950: '#000000',
  },
}
SCSS
$custom: #8f42dd;
$custom-light: #b67ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42dd",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 221
  },
  "hsl": {
    "h": 269.806,
    "s": 69.507,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55769,
    "c": 0.22361,
    "h": 302.3
  },
  "luminance": 0.14957
}

Semantic roles & 50–950 ramp

primary
#8F42DD
secondary
#BEDD9D
accent
#EC3B94
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F42DD

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

Preview Lab → · Contrast checker → · Palette generator →

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