#8F42BE#8F42BE

#8F42BE is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.6% C 0.191 H 310.0°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8F42BE
RGBrgb(143, 66, 190)
HSLhsl(277, 49%, 50%)
HSVhsv(277, 65%, 75%)
CMYKcmyk(24.7%, 65.3%, 0%, 25.5%)
CIE-LABlab(43.44, 53.41, -51.93)
CIE-LCHlch(43.44, 74.50, 315.80°)
OKLaboklab(53.57% 0.1231 -0.1466)
OKLCHoklch(53.57% 0.191 310)
XYZxyz(22.5684, 13.4542, 50.1133)
Luminance0.1345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42BE #71BE42
analogous
#5142BE #8F42BE #BE42AF
triadic
#8F42BE #BE8F42 #42BE8F
tetradic
#8F42BE #BE5142 #71BE42 #42AFBE
square
#8F42BE #BE5142 #71BE42 #42AFBE
split-complementary
#8F42BE #AFBE42 #42BE51
monochromatic
#4B2263 #6D3291 #8F42BE #AA70CE #C59DDD

Accessibility & contrast

On white

5.69
#8F42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8F42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42BE
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42BE#FFFFFF#000000##FFFFFF
##8F42BE1.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C2
Deuteranopia (green-blind)
#3168BB
Tritanopia (blue-blind)
#895B7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8f42be;
/* rgb */ color: rgb(143, 66, 190);
/* oklch */ color: oklch(53.6% 0.191 310.0);
Tailwind
colors: {
  custom: {
    50: '#b47bd2',
    500: '#8f42be',
    950: '#000000',
  },
}
SCSS
$custom: #8f42be;
$custom-light: #b47bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42be",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 277.258,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53566,
    "c": 0.19145,
    "h": 310
  },
  "luminance": 0.13454
}

Semantic roles & 50–950 ramp

primary
#8F42BE
secondary
#A7CA92
accent
#D84F83
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8F42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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