#8F42A2#8F42A2

#8F42A2 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.8% C 0.163 H 319.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8F42A2
RGBrgb(143, 66, 162)
HSLhsl(288, 42%, 45%)
HSVhsv(288, 59%, 64%)
CMYKcmyk(11.7%, 59.3%, 0%, 36.5%)
CIE-LABlab(41.76, 47.42, -38.09)
CIE-LCHlch(41.76, 60.82, 321.23°)
OKLaboklab(51.81% 0.1233 -0.1061)
OKLCHoklch(51.81% 0.163 319.3)
XYZxyz(19.7967, 12.3455, 35.5156)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42A2 #55A242
analogous
#5F42A2 #8F42A2 #A24285
triadic
#8F42A2 #A28F42 #42A28F
tetradic
#8F42A2 #A25F42 #55A242 #4285A2
square
#8F42A2 #A25F42 #55A242 #4285A2
split-complementary
#8F42A2 #85A242 #42A25F
monochromatic
#421F4B #693077 #8F42A2 #AD62BF #C48ED1

Accessibility & contrast

On white

6.05
#8F42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8F42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42A2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42A2#FFFFFF#000000##FFFFFF
##8F42A21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5DA5
Deuteranopia (green-blind)
#4865A0
Tritanopia (blue-blind)
#8F516C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8f42a2;
/* rgb */ color: rgb(143, 66, 162);
/* oklch */ color: oklch(51.8% 0.163 319.3);
Tailwind
colors: {
  custom: {
    50: '#b27bbe',
    500: '#8f42a2',
    950: '#000000',
  },
}
SCSS
$custom: #8f42a2;
$custom-light: #b27bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42a2",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 288.125,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51808,
    "c": 0.16269,
    "h": 319.3
  },
  "luminance": 0.12345
}

Semantic roles & 50–950 ramp

primary
#8F42A2
secondary
#8FBC84
accent
#D2566E
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8F42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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