#8F48CA#8F48CA

#8F48CA is a mid, vivid violet. Relative luminance 0.147; OKLCH L 55.1% C 0.196 H 306.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#8F48CA
RGBrgb(143, 72, 202)
HSLhsl(273, 55%, 54%)
HSVhsv(273, 64%, 79%)
CMYKcmyk(29.2%, 64.4%, 0%, 20.8%)
CIE-LABlab(45.27, 53.24, -55.95)
CIE-LCHlch(45.27, 77.23, 313.58°)
OKLaboklab(55.14% 0.1154 -0.1584)
OKLCHoklch(55.14% 0.196 306.1)
XYZxyz(24.3034, 14.7389, 57.4302)
Luminance0.1474 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F48CA #83CA48
analogous
#4E48CA #8F48CA #CA48C4
triadic
#8F48CA #CA8F48 #48CA8F
tetradic
#8F48CA #CA4E48 #83CA48 #48C4CA
square
#8F48CA #CA4E48 #83CA48 #48C4CA
split-complementary
#8F48CA #C4CA48 #48CA4E
monochromatic
#502276 #7030A5 #8F48CA #AC77D8 #C9A7E5

Accessibility & contrast

On white

5.32
#8F48CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#8F48CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F48CA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F48CA#FFFFFF#000000##FFFFFF
##8F48CA1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#296CC7
Tritanopia (blue-blind)
#856383
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8f48ca;
/* rgb */ color: rgb(143, 72, 202);
/* oklch */ color: oklch(55.1% 0.196 306.1);
Tailwind
colors: {
  custom: {
    50: '#b47fdb',
    500: '#8f48ca',
    950: '#000000',
  },
}
SCSS
$custom: #8f48ca;
$custom-light: #b47fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8f48ca",
  "rgb": {
    "r": 143,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 272.769,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.55137,
    "c": 0.19599,
    "h": 306.1
  },
  "luminance": 0.14739
}

Semantic roles & 50–950 ramp

primary
#8F48CA
secondary
#B4D39B
accent
#DE498D
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8F48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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