#8F48D2#8F48D2

#8F48D2 is a mid, highly saturated violet. Relative luminance 0.151; OKLCH L 55.7% C 0.205 H 304.1°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#8F48D2
RGBrgb(143, 72, 210)
HSLhsl(271, 61%, 55%)
HSVhsv(271, 66%, 82%)
CMYKcmyk(31.9%, 65.7%, 0%, 17.6%)
CIE-LABlab(45.81, 55.12, -59.69)
CIE-LCHlch(45.81, 81.25, 312.72°)
OKLaboklab(55.69% 0.1147 -0.1694)
OKLCHoklch(55.69% 0.205 304.1)
XYZxyz(25.2753, 15.1276, 62.5486)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F48D2 #8BD248
analogous
#4A48D2 #8F48D2 #D248D0
triadic
#8F48D2 #D28F48 #48D28F
tetradic
#8F48D2 #D24A48 #8BD248 #48D0D2
square
#8F48D2 #D24A48 #8BD248 #48D0D2
split-complementary
#8F48D2 #D0D248 #48D24A
monochromatic
#512080 #702CB1 #8F48D2 #AD79DE #CBAAEA

Accessibility & contrast

On white

5.22
#8F48D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8F48D2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F48D2#FFFFFF#000000##FFFFFF
##8F48D21.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#196CCF
Tritanopia (blue-blind)
#826687
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8f48d2;
/* rgb */ color: rgb(143, 72, 210);
/* oklch */ color: oklch(55.7% 0.205 304.1);
Tailwind
colors: {
  custom: {
    50: '#b57fe1',
    500: '#8f48d2',
    950: '#000000',
  },
}
SCSS
$custom: #8f48d2;
$custom-light: #b57fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#8f48d2",
  "rgb": {
    "r": 143,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 270.87,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55691,
    "c": 0.2046,
    "h": 304.1
  },
  "luminance": 0.15128
}

Semantic roles & 50–950 ramp

primary
#8F48D2
secondary
#BAD89E
accent
#E44492
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8F48D2

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

Preview Lab → · Contrast checker → · Palette generator →

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