#8F42CE#8F42CE

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

Color values

HEX#8F42CE
RGBrgb(143, 66, 206)
HSLhsl(273, 59%, 53%)
HSVhsv(273, 68%, 81%)
CMYKcmyk(30.6%, 68%, 0%, 19.2%)
CIE-LABlab(44.51, 57.03, -59.49)
CIE-LCHlch(44.51, 82.41, 313.79°)
OKLaboklab(54.67% 0.1216 -0.1688)
OKLCHoklch(54.67% 0.208 305.8)
XYZxyz(24.4140, 14.1925, 59.8338)
Luminance0.1419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42CE #81CE42
analogous
#4942CE #8F42CE #CE42C7
triadic
#8F42CE #CE8F42 #42CE8F
tetradic
#8F42CE #CE4942 #81CE42 #42C7CE
square
#8F42CE #CE4942 #81CE42 #42C7CE
split-complementary
#8F42CE #C7CE42 #42CE49
monochromatic
#4F1F77 #702BA7 #8F42CE #AC73DB #C9A3E7

Accessibility & contrast

On white

5.47
#8F42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#8F42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42CE
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42CE#FFFFFF#000000##FFFFFF
##8F42CE1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#146ACB
Tritanopia (blue-blind)
#846183
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f42ce;
/* rgb */ color: rgb(143, 66, 206);
/* oklch */ color: oklch(54.7% 0.208 305.8);
Tailwind
colors: {
  custom: {
    50: '#b57cde',
    500: '#8f42ce',
    950: '#000000',
  },
}
SCSS
$custom: #8f42ce;
$custom-light: #b57cde;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42ce",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 273,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54672,
    "c": 0.20807,
    "h": 305.8
  },
  "luminance": 0.14192
}

Semantic roles & 50–950 ramp

primary
#8F42CE
secondary
#B3D498
accent
#E2468C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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