#8A48CD#8A48CD

#8A48CD is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.8% C 0.198 H 303.2°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8A48CD
RGBrgb(138, 72, 205)
HSLhsl(270, 57%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32.7%, 64.9%, 0%, 19.6%)
CIE-LABlab(44.87, 52.87, -58.37)
CIE-LCHlch(44.87, 78.75, 312.17°)
OKLaboklab(54.77% 0.1085 -0.1657)
OKLCHoklch(54.77% 0.198 303.2)
XYZxyz(23.8155, 14.4458, 59.2794)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48CD #8BCD48
analogous
#4849CD #8A48CD #CC48CD
triadic
#8A48CD #CD8A48 #48CD8A
tetradic
#8A48CD #CD4849 #8BCD48 #48CDCC
square
#8A48CD #CD4849 #8BCD48 #48CDCC
split-complementary
#8A48CD #CDCC48 #49CD48
monochromatic
#4D2179 #6B2EA9 #8A48CD #A978DA #C7A8E7

Accessibility & contrast

On white

5.40
#8A48CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8A48CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48CD
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48CD#FFFFFF#000000##FFFFFF
##8A48CD1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#196ACA
Tritanopia (blue-blind)
#7D6584
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a48cd;
/* rgb */ color: rgb(138, 72, 205);
/* oklch */ color: oklch(54.8% 0.198 303.2);
Tailwind
colors: {
  custom: {
    50: '#b17fdd',
    500: '#8a48cd',
    950: '#000000',
  },
}
SCSS
$custom: #8a48cd;
$custom-light: #b17fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48cd",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 205
  },
  "hsl": {
    "h": 269.774,
    "s": 57.082,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54772,
    "c": 0.19808,
    "h": 303.2
  },
  "luminance": 0.14446
}

Semantic roles & 50–950 ramp

primary
#8A48CD
secondary
#B9D59C
accent
#E04794
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A48CD

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

Preview Lab → · Contrast checker → · Palette generator →

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