#8A48D7#8A48D7

#8A48D7 is a mid, highly saturated violet. Relative luminance 0.149; OKLCH L 55.5% C 0.209 H 300.9°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#8A48D7
RGBrgb(138, 72, 215)
HSLhsl(268, 64%, 56%)
HSVhsv(268, 67%, 84%)
CMYKcmyk(35.8%, 66.5%, 0%, 15.7%)
CIE-LABlab(45.56, 55.29, -62.99)
CIE-LCHlch(45.56, 83.81, 311.27°)
OKLaboklab(55.49% 0.1075 -0.1793)
OKLCHoklch(55.49% 0.209 300.9)
XYZxyz(25.0614, 14.9441, 65.8410)
Luminance0.1494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48D7 #95D748
analogous
#484ED7 #8A48D7 #D248D7
triadic
#8A48D7 #D78A48 #48D78A
tetradic
#8A48D7 #D7484E #95D748 #48D7D2
square
#8A48D7 #D7484E #95D748 #48D7D2
split-complementary
#8A48D7 #D7D248 #4ED748
monochromatic
#4E1E87 #6B29B9 #8A48D7 #AA7AE2 #CAACED

Accessibility & contrast

On white

5.26
#8A48D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A48D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48D7
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48D7#FFFFFF#000000##FFFFFF
##8A48D71.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a48d7;
/* rgb */ color: rgb(138, 72, 215);
/* oklch */ color: oklch(55.5% 0.209 300.9);
Tailwind
colors: {
  custom: {
    50: '#b27fe4',
    500: '#8a48d7',
    950: '#000000',
  },
}
SCSS
$custom: #8a48d7;
$custom-light: #b27fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48d7",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 215
  },
  "hsl": {
    "h": 267.692,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55489,
    "c": 0.20904,
    "h": 300.9
  },
  "luminance": 0.14944
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A48D7

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

Preview Lab → · Contrast checker → · Palette generator →

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