#8F42E8#8F42E8

#8F42E8 is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.6% C 0.235 H 300.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8F42E8
RGBrgb(143, 66, 232)
HSLhsl(268, 78%, 58%)
HSVhsv(268, 72%, 91%)
CMYKcmyk(38.4%, 71.6%, 0%, 9%)
CIE-LABlab(46.39, 63.11, -71.27)
CIE-LCHlch(46.39, 95.20, 311.52°)
OKLaboklab(56.61% 0.1175 -0.2034)
OKLCHoklch(56.61% 0.235 300)
XYZxyz(27.8378, 15.5620, 77.8654)
Luminance0.1556 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42E8 #9BE842
analogous
#4248E8 #8F42E8 #E242E8
triadic
#8F42E8 #E88F42 #42E88F
tetradic
#8F42E8 #E84248 #9BE842 #42E8E2
square
#8F42E8 #E84248 #9BE842 #42E8E2
split-complementary
#8F42E8 #E8E242 #48E842
monochromatic
#53139D #701AD3 #8F42E8 #AF79EF #D0AFF5

Accessibility & contrast

On white

5.11
#8F42E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#8F42E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42E8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42E8#FFFFFF#000000##FFFFFF
##8F42E81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#7B6B91
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8f42e8;
/* rgb */ color: rgb(143, 66, 232);
/* oklch */ color: oklch(56.6% 0.235 300.0);
Tailwind
colors: {
  custom: {
    50: '#b77df0',
    500: '#8f42e8',
    950: '#000000',
  },
}
SCSS
$custom: #8f42e8;
$custom-light: #b77df0;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42e8",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 232
  },
  "hsl": {
    "h": 267.831,
    "s": 78.302,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56607,
    "c": 0.23494,
    "h": 300
  },
  "luminance": 0.15562
}

Semantic roles & 50–950 ramp

primary
#8F42E8
secondary
#C5E4A2
accent
#F5339B
background
#FBF7FE
surface
#F7EEFD
border
#D0C9D5
text
#120A17
muted
#817C85

Preview Lab

Preview with #8F42E8

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

Preview Lab → · Contrast checker → · Palette generator →

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