#8F42E1#8F42E1

#8F42E1 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 56.1% C 0.228 H 301.4°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#8F42E1
RGBrgb(143, 66, 225)
HSLhsl(269, 73%, 57%)
HSVhsv(269, 71%, 88%)
CMYKcmyk(36.4%, 70.7%, 0%, 11.8%)
CIE-LABlab(45.87, 61.45, -68.16)
CIE-LCHlch(45.87, 91.77, 312.04°)
OKLaboklab(56.07% 0.1188 -0.1943)
OKLCHoklch(56.07% 0.228 301.4)
XYZxyz(26.8632, 15.1722, 72.7328)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42E1 #94E142
analogous
#4244E1 #8F42E1 #DF42E1
triadic
#8F42E1 #E18F42 #42E18F
tetradic
#8F42E1 #E14244 #94E142 #42E1DF
square
#8F42E1 #E14244 #94E142 #42E1DF
split-complementary
#8F42E1 #E1DF42 #44E142
monochromatic
#521792 #701FC6 #8F42E1 #AE77E9 #CEACF2

Accessibility & contrast

On white

5.21
#8F42E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#8F42E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42E1
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42E1#FFFFFF#000000##FFFFFF
##8F42E11.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE6
Deuteranopia (green-blind)
#006CDE
Tritanopia (blue-blind)
#7D698D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8f42e1;
/* rgb */ color: rgb(143, 66, 225);
/* oklch */ color: oklch(56.1% 0.228 301.4);
Tailwind
colors: {
  custom: {
    50: '#b67deb',
    500: '#8f42e1',
    950: '#000000',
  },
}
SCSS
$custom: #8f42e1;
$custom-light: #b67deb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42e1",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 225
  },
  "hsl": {
    "h": 269.057,
    "s": 72.603,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5607,
    "c": 0.22774,
    "h": 301.4
  },
  "luminance": 0.15172
}

Semantic roles & 50–950 ramp

primary
#8F42E1
secondary
#C0E09F
accent
#EF3897
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8F42E1

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

Preview Lab → · Contrast checker → · Palette generator →

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