#8F42CD#8F42CD

#8F42CD is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.6% C 0.207 H 306.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8F42CD
RGBrgb(143, 66, 205)
HSLhsl(273, 58%, 53%)
HSVhsv(273, 68%, 80%)
CMYKcmyk(30.2%, 67.8%, 0%, 19.6%)
CIE-LABlab(44.44, 56.80, -59.03)
CIE-LCHlch(44.44, 81.92, 313.90°)
OKLaboklab(54.6% 0.1217 -0.1674)
OKLCHoklch(54.6% 0.207 306)
XYZxyz(24.2930, 14.1441, 59.1961)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42CD #80CD42
analogous
#4942CD #8F42CD #CD42C6
triadic
#8F42CD #CD8F42 #42CD8F
tetradic
#8F42CD #CD4942 #80CD42 #42C6CD
square
#8F42CD #CD4942 #80CD42 #42C6CD
split-complementary
#8F42CD #C6CD42 #42CD49
monochromatic
#4F1F76 #6F2CA6 #8F42CD #AC72DA #C8A3E7

Accessibility & contrast

On white

5.48
#8F42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8F42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42CD
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42CD#FFFFFF#000000##FFFFFF
##8F42CD1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1769CA
Tritanopia (blue-blind)
#846182
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f42cd;
/* rgb */ color: rgb(143, 66, 205);
/* oklch */ color: oklch(54.6% 0.207 306.0);
Tailwind
colors: {
  custom: {
    50: '#b47cdd',
    500: '#8f42cd',
    950: '#000000',
  },
}
SCSS
$custom: #8f42cd;
$custom-light: #b47cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42cd",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 273.237,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54601,
    "c": 0.20703,
    "h": 306
  },
  "luminance": 0.14144
}

Semantic roles & 50–950 ramp

primary
#8F42CD
secondary
#B2D397
accent
#E1468C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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