#8F42CB#8F42CB

#8F42CB is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.5% C 0.205 H 306.5°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8F42CB
RGBrgb(143, 66, 203)
HSLhsl(274, 57%, 53%)
HSVhsv(274, 67%, 80%)
CMYKcmyk(29.6%, 67.5%, 0%, 20.4%)
CIE-LABlab(44.30, 56.34, -58.09)
CIE-LCHlch(44.30, 80.93, 314.12°)
OKLaboklab(54.46% 0.122 -0.1647)
OKLCHoklch(54.46% 0.205 306.5)
XYZxyz(24.0531, 14.0481, 57.9328)
Luminance0.1405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F42CB #7ECB42
analogous
#4B42CB #8F42CB #CB42C2
triadic
#8F42CB #CB8F42 #42CB8F
tetradic
#8F42CB #CB4B42 #7ECB42 #42C2CB
square
#8F42CB #CB4B42 #7ECB42 #42C2CB
split-complementary
#8F42CB #C2CB42 #42CB4B
monochromatic
#4E2073 #6F2DA3 #8F42CB #AB72D8 #C8A2E5

Accessibility & contrast

On white

5.51
#8F42CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8F42CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F42CB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F42CB#FFFFFF#000000##FFFFFF
##8F42CB1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066CF
Deuteranopia (green-blind)
#1C69C8
Tritanopia (blue-blind)
#856081
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f42cb;
/* rgb */ color: rgb(143, 66, 203);
/* oklch */ color: oklch(54.5% 0.205 306.5);
Tailwind
colors: {
  custom: {
    50: '#b47cdc',
    500: '#8f42cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f42cb;
$custom-light: #b47cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f42cb",
  "rgb": {
    "r": 143,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 273.723,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.54459,
    "c": 0.20495,
    "h": 306.5
  },
  "luminance": 0.14048
}

Semantic roles & 50–950 ramp

primary
#8F42CB
secondary
#B1D297
accent
#E0488A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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