#8A48D8#8A48D8

#8A48D8 is a mid, highly saturated violet. Relative luminance 0.150; OKLCH L 55.6% C 0.210 H 300.7°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8A48D8
RGBrgb(138, 72, 216)
HSLhsl(268, 65%, 56%)
HSVhsv(268, 67%, 85%)
CMYKcmyk(36.1%, 66.7%, 0%, 15.3%)
CIE-LABlab(45.63, 55.53, -63.45)
CIE-LCHlch(45.63, 84.32, 311.19°)
OKLaboklab(55.56% 0.1074 -0.1806)
OKLCHoklch(55.56% 0.21 300.7)
XYZxyz(25.1903, 14.9957, 66.5198)
Luminance0.1500 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48D8 #96D848
analogous
#484ED8 #8A48D8 #D248D8
triadic
#8A48D8 #D88A48 #48D88A
tetradic
#8A48D8 #D8484E #96D848 #48D8D2
square
#8A48D8 #D8484E #96D848 #48D8D2
split-complementary
#8A48D8 #D8D248 #4ED848
monochromatic
#4E1D89 #6B28BB #8A48D8 #AA7AE3 #CBADEE

Accessibility & contrast

On white

5.25
#8A48D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8A48D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48D8
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48D8#FFFFFF#000000##FFFFFF
##8A48D81.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#79698A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a48d8;
/* rgb */ color: rgb(138, 72, 216);
/* oklch */ color: oklch(55.6% 0.210 300.7);
Tailwind
colors: {
  custom: {
    50: '#b27fe5',
    500: '#8a48d8',
    950: '#000000',
  },
}
SCSS
$custom: #8a48d8;
$custom-light: #b27fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48d8",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 216
  },
  "hsl": {
    "h": 267.5,
    "s": 64.865,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55562,
    "c": 0.21013,
    "h": 300.7
  },
  "luminance": 0.14996
}

Semantic roles & 50–950 ramp

primary
#8A48D8
secondary
#C0DBA0
accent
#E8409B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8A48D8

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

Preview Lab → · Contrast checker → · Palette generator →

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