#8F48BA#8F48BA

#8F48BA is a mid, vivid violet. Relative luminance 0.140; OKLCH L 54.1% C 0.179 H 310.5°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8F48BA
RGBrgb(143, 72, 186)
HSLhsl(277, 45%, 51%)
HSVhsv(277, 61%, 73%)
CMYKcmyk(23.1%, 61.3%, 0%, 27.1%)
CIE-LABlab(44.26, 49.58, -48.28)
CIE-LCHlch(44.26, 69.21, 315.76°)
OKLaboklab(54.08% 0.1161 -0.1359)
OKLCHoklch(54.08% 0.179 310.5)
XYZxyz(22.5063, 14.0200, 47.9654)
Luminance0.1402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F48BA #73BA48
analogous
#5648BA #8F48BA #BA48AC
triadic
#8F48BA #BA8F48 #48BA8F
tetradic
#8F48BA #BA5648 #73BA48 #48ACBA
square
#8F48BA #BA5648 #73BA48 #48ACBA
split-complementary
#8F48BA #ACBA48 #48BA56
monochromatic
#4B2562 #6D368F #8F48BA #AA74CB #C5A1DC

Accessibility & contrast

On white

5.52
#8F48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8F48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F48BA
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F48BA#FFFFFF#000000##FFFFFF
##8F48BA1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1965BE
Deuteranopia (green-blind)
#3C6AB7
Tritanopia (blue-blind)
#895E7A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8f48ba;
/* rgb */ color: rgb(143, 72, 186);
/* oklch */ color: oklch(54.1% 0.179 310.5);
Tailwind
colors: {
  custom: {
    50: '#b37fcf',
    500: '#8f48ba',
    950: '#000000',
  },
}
SCSS
$custom: #8f48ba;
$custom-light: #b37fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8f48ba",
  "rgb": {
    "r": 143,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 277.368,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.5408,
    "c": 0.17874,
    "h": 310.5
  },
  "luminance": 0.1402
}

Semantic roles & 50–950 ramp

primary
#8F48BA
secondary
#A9C896
accent
#D55384
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8F48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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