#8F42D0#8F42D0

#8F42D0 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.210 H 305.3°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8F42D0
RGBrgb(143, 66, 208)
HSLhsl(273, 60%, 54%)
HSVhsv(273, 68%, 82%)
CMYKcmyk(31.3%, 68.3%, 0%, 18.4%)
CIE-LABlab(44.65, 57.49, -60.42)
CIE-LCHlch(44.65, 83.40, 313.57°)
OKLaboklab(54.82% 0.1214 -0.1715)
OKLCHoklch(54.82% 0.21 305.3)
XYZxyz(24.6586, 14.2903, 61.1215)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42D0 #83D042
analogous
#4842D0 #8F42D0 #D042CA
triadic
#8F42D0 #D08F42 #42D08F
tetradic
#8F42D0 #D04842 #83D042 #42CAD0
square
#8F42D0 #D04842 #83D042 #42CAD0
split-complementary
#8F42D0 #CAD042 #42D048
monochromatic
#501E79 #702AAA #8F42D0 #AC73DC #C9A4E8

Accessibility & contrast

On white

5.44
#8F42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8F42D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42D0
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42D0#FFFFFF#000000##FFFFFF
##8F42D01.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D4
Deuteranopia (green-blind)
#0D6ACD
Tritanopia (blue-blind)
#836284
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8f42d0;
/* rgb */ color: rgb(143, 66, 208);
/* oklch */ color: oklch(54.8% 0.210 305.3);
Tailwind
colors: {
  custom: {
    50: '#b57cdf',
    500: '#8f42d0',
    950: '#000000',
  },
}
SCSS
$custom: #8f42d0;
$custom-light: #b57cdf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42d0",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 272.535,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54815,
    "c": 0.21015,
    "h": 305.3
  },
  "luminance": 0.1429
}

Semantic roles & 50–950 ramp

primary
#8F42D0
secondary
#B4D599
accent
#E3448D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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