#8A48CB#8A48CB

#8A48CB is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.6% C 0.196 H 303.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A48CB
RGBrgb(138, 72, 203)
HSLhsl(270, 56%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32%, 64.5%, 0%, 20.4%)
CIE-LABlab(44.73, 52.39, -57.43)
CIE-LCHlch(44.73, 77.74, 312.37°)
OKLaboklab(54.63% 0.1087 -0.163)
OKLCHoklch(54.63% 0.196 303.7)
XYZxyz(23.5756, 14.3499, 58.0161)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48CB #89CB48
analogous
#4948CB #8A48CB #CB48CB
triadic
#8A48CB #CB8A48 #48CB8A
tetradic
#8A48CB #CB4948 #89CB48 #48CBCB
square
#8A48CB #CB4948 #89CB48 #48CBCB
split-complementary
#8A48CB #CBCB48 #48CB49
monochromatic
#4D2277 #6B2FA6 #8A48CB #A878D9 #C7A7E6

Accessibility & contrast

On white

5.43
#8A48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48CB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48CB#FFFFFF#000000##FFFFFF
##8A48CB1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#1E6AC8
Tritanopia (blue-blind)
#7E6483
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a48cb;
/* rgb */ color: rgb(138, 72, 203);
/* oklch */ color: oklch(54.6% 0.196 303.7);
Tailwind
colors: {
  custom: {
    50: '#b17fdc',
    500: '#8a48cb',
    950: '#000000',
  },
}
SCSS
$custom: #8a48cb;
$custom-light: #b17fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48cb",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 270.229,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54632,
    "c": 0.19588,
    "h": 303.7
  },
  "luminance": 0.1435
}

Semantic roles & 50–950 ramp

primary
#8A48CB
secondary
#B7D39B
accent
#DF4993
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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