#8F42BA#8F42BA

#8F42BA is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.3% C 0.187 H 311.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8F42BA
RGBrgb(143, 66, 186)
HSLhsl(279, 48%, 49%)
HSVhsv(279, 65%, 73%)
CMYKcmyk(23.1%, 64.5%, 0%, 27.1%)
CIE-LABlab(43.18, 52.52, -50.01)
CIE-LCHlch(43.18, 72.52, 316.41°)
OKLaboklab(53.3% 0.1233 -0.141)
OKLCHoklch(53.3% 0.187 311.2)
XYZxyz(22.1372, 13.2818, 47.8423)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42BA #6DBA42
analogous
#5342BA #8F42BA #BA42A9
triadic
#8F42BA #BA8F42 #42BA8F
tetradic
#8F42BA #BA5342 #6DBA42 #42A9BA
square
#8F42BA #BA5342 #6DBA42 #42A9BA
split-complementary
#8F42BA #A9BA42 #42BA53
monochromatic
#4A2260 #6C328D #8F42BA #AA6ECB #C49BDB

Accessibility & contrast

On white

5.74
#8F42BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8F42BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42BA
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42BA#FFFFFF#000000##FFFFFF
##8F42BA1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#3567B7
Tritanopia (blue-blind)
#8A5A78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8f42ba;
/* rgb */ color: rgb(143, 66, 186);
/* oklch */ color: oklch(53.3% 0.187 311.2);
Tailwind
colors: {
  custom: {
    50: '#b37bcf',
    500: '#8f42ba',
    950: '#000000',
  },
}
SCSS
$custom: #8f42ba;
$custom-light: #b37bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42ba",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 186
  },
  "hsl": {
    "h": 278.5,
    "s": 47.619,
    "l": 49.412
  },
  "oklch": {
    "l": 0.533,
    "c": 0.1873,
    "h": 311.2
  },
  "luminance": 0.13281
}

Semantic roles & 50–950 ramp

primary
#8F42BA
secondary
#A4C890
accent
#D75181
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F42BA

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

Preview Lab → · Contrast checker → · Palette generator →

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