#8F42CA#8F42CA

#8F42CA is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.4% C 0.204 H 306.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8F42CA
RGBrgb(143, 66, 202)
HSLhsl(274, 56%, 53%)
HSVhsv(274, 67%, 79%)
CMYKcmyk(29.2%, 67.3%, 0%, 20.8%)
CIE-LABlab(44.23, 56.11, -57.63)
CIE-LCHlch(44.23, 80.43, 314.24°)
OKLaboklab(54.39% 0.1221 -0.1633)
OKLCHoklch(54.39% 0.204 306.8)
XYZxyz(23.9343, 14.0006, 57.3072)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42CA #7DCA42
analogous
#4B42CA #8F42CA #CA42C1
triadic
#8F42CA #CA8F42 #42CA8F
tetradic
#8F42CA #CA4B42 #7DCA42 #42C1CA
square
#8F42CA #CA4B42 #7DCA42 #42C1CA
split-complementary
#8F42CA #C1CA42 #42CA4B
monochromatic
#4E2072 #6F2DA2 #8F42CA #AB72D7 #C8A2E5

Accessibility & contrast

On white

5.53
#8F42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8F42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42CA
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42CA#FFFFFF#000000##FFFFFF
##8F42CA1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CE
Deuteranopia (green-blind)
#1E69C7
Tritanopia (blue-blind)
#856081
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f42ca;
/* rgb */ color: rgb(143, 66, 202);
/* oklch */ color: oklch(54.4% 0.204 306.8);
Tailwind
colors: {
  custom: {
    50: '#b47cdb',
    500: '#8f42ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f42ca;
$custom-light: #b47cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42ca",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 273.971,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.54389,
    "c": 0.20391,
    "h": 306.8
  },
  "luminance": 0.14
}

Semantic roles & 50–950 ramp

primary
#8F42CA
secondary
#B0D196
accent
#DF488A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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