#8F48CB#8F48CB

#8F48CB is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.2% C 0.197 H 305.8°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#8F48CB
RGBrgb(143, 72, 203)
HSLhsl(273, 56%, 54%)
HSVhsv(273, 65%, 80%)
CMYKcmyk(29.6%, 64.5%, 0%, 20.4%)
CIE-LABlab(45.34, 53.47, -56.42)
CIE-LCHlch(45.34, 77.73, 313.47°)
OKLaboklab(55.21% 0.1153 -0.1598)
OKLCHoklch(55.21% 0.197 305.8)
XYZxyz(24.4222, 14.7864, 58.0558)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F48CB #84CB48
analogous
#4E48CB #8F48CB #CB48C6
triadic
#8F48CB #CB8F48 #48CB8F
tetradic
#8F48CB #CB4E48 #84CB48 #48C6CB
square
#8F48CB #CB4E48 #84CB48 #48C6CB
split-complementary
#8F48CB #C6CB48 #48CB4E
monochromatic
#502277 #702FA6 #8F48CB #AC78D9 #C9A7E6

Accessibility & contrast

On white

5.31
#8F48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8F48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F48CB
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F48CB#FFFFFF#000000##FFFFFF
##8F48CB1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#276CC8
Tritanopia (blue-blind)
#856483
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f48cb;
/* rgb */ color: rgb(143, 72, 203);
/* oklch */ color: oklch(55.2% 0.197 305.8);
Tailwind
colors: {
  custom: {
    50: '#b47fdc',
    500: '#8f48cb',
    950: '#000000',
  },
}
SCSS
$custom: #8f48cb;
$custom-light: #b47fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8f48cb",
  "rgb": {
    "r": 143,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 272.519,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.55205,
    "c": 0.19707,
    "h": 305.8
  },
  "luminance": 0.14786
}

Semantic roles & 50–950 ramp

primary
#8F48CB
secondary
#B5D39B
accent
#DF498E
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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