#8F42C8#8F42C8

#8F42C8 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.2% C 0.202 H 307.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8F42C8
RGBrgb(143, 66, 200)
HSLhsl(274, 55%, 52%)
HSVhsv(274, 67%, 78%)
CMYKcmyk(28.5%, 67%, 0%, 21.6%)
CIE-LABlab(44.10, 55.66, -56.69)
CIE-LCHlch(44.10, 79.44, 314.47°)
OKLaboklab(54.25% 0.1223 -0.1606)
OKLCHoklch(54.25% 0.202 307.3)
XYZxyz(23.6990, 13.9065, 56.0681)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42C8 #7BC842
analogous
#4C42C8 #8F42C8 #C842BE
triadic
#8F42C8 #C88F42 #42C88F
tetradic
#8F42C8 #C84C42 #7BC842 #42BEC8
square
#8F42C8 #C84C42 #7BC842 #42BEC8
split-complementary
#8F42C8 #BEC842 #42C84C
monochromatic
#4E206F #6F2E9F #8F42C8 #AB71D6 #C7A1E4

Accessibility & contrast

On white

5.55
#8F42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8F42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42C8
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42C8#FFFFFF#000000##FFFFFF
##8F42C81.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CC
Deuteranopia (green-blind)
#2269C5
Tritanopia (blue-blind)
#865F80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8f42c8;
/* rgb */ color: rgb(143, 66, 200);
/* oklch */ color: oklch(54.2% 0.202 307.3);
Tailwind
colors: {
  custom: {
    50: '#b47cd9',
    500: '#8f42c8',
    950: '#000000',
  },
}
SCSS
$custom: #8f42c8;
$custom-light: #b47cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42c8",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 274.478,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54249,
    "c": 0.20183,
    "h": 307.3
  },
  "luminance": 0.13906
}

Semantic roles & 50–950 ramp

primary
#8F42C8
secondary
#AFD096
accent
#DE4A89
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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