#8A48BA#8A48BA

#8A48BA is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.5% C 0.177 H 308.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8A48BA
RGBrgb(138, 72, 186)
HSLhsl(275, 45%, 51%)
HSVhsv(275, 61%, 73%)
CMYKcmyk(25.8%, 61.3%, 0%, 27.1%)
CIE-LABlab(43.63, 48.38, -49.33)
CIE-LCHlch(43.63, 69.09, 314.44°)
OKLaboklab(53.48% 0.1096 -0.1392)
OKLCHoklch(53.48% 0.177 308.2)
XYZxyz(21.6597, 13.5835, 47.9257)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48BA #78BA48
analogous
#5148BA #8A48BA #BA48B1
triadic
#8A48BA #BA8A48 #48BA8A
tetradic
#8A48BA #BA5148 #78BA48 #48B1BA
square
#8A48BA #BA5148 #78BA48 #48B1BA
split-complementary
#8A48BA #B1BA48 #48BA51
monochromatic
#492562 #69368F #8A48BA #A674CB #C3A1DC

Accessibility & contrast

On white

5.65
#8A48BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A48BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48BA
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48BA#FFFFFF#000000##FFFFFF
##8A48BA1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1364BE
Deuteranopia (green-blind)
#3668B7
Tritanopia (blue-blind)
#835E7A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a48ba;
/* rgb */ color: rgb(138, 72, 186);
/* oklch */ color: oklch(53.5% 0.177 308.2);
Tailwind
colors: {
  custom: {
    50: '#b07ecf',
    500: '#8a48ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a48ba;
$custom-light: #b07ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48ba",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 186
  },
  "hsl": {
    "h": 274.737,
    "s": 45.238,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53484,
    "c": 0.17713,
    "h": 308.2
  },
  "luminance": 0.13583
}

Semantic roles & 50–950 ramp

primary
#8A48BA
secondary
#ABC896
accent
#D5538A
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8A48BA

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

Preview Lab → · Contrast checker → · Palette generator →

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