#8A48D5#8A48D5

#8A48D5 is a mid, highly saturated violet. Relative luminance 0.148; OKLCH L 55.3% C 0.207 H 301.4°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A48D5
RGBrgb(138, 72, 213)
HSLhsl(268, 63%, 56%)
HSVhsv(268, 66%, 84%)
CMYKcmyk(35.2%, 66.2%, 0%, 16.5%)
CIE-LABlab(45.42, 54.80, -62.07)
CIE-LCHlch(45.42, 82.80, 311.44°)
OKLaboklab(55.34% 0.1077 -0.1766)
OKLCHoklch(55.34% 0.207 301.4)
XYZxyz(24.8060, 14.8420, 64.4958)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48D5 #93D548
analogous
#484CD5 #8A48D5 #D048D5
triadic
#8A48D5 #D58A48 #48D58A
tetradic
#8A48D5 #D5484C #93D548 #48D5D0
square
#8A48D5 #D5484C #93D548 #48D5D0
split-complementary
#8A48D5 #D5D048 #4CD548
monochromatic
#4E1E84 #6B2AB6 #8A48D5 #AA7AE0 #CAACEC

Accessibility & contrast

On white

5.29
#8A48D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A48D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48D5
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48D5#FFFFFF#000000##FFFFFF
##8A48D51.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD9
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#7A6889
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a48d5;
/* rgb */ color: rgb(138, 72, 213);
/* oklch */ color: oklch(55.3% 0.207 301.4);
Tailwind
colors: {
  custom: {
    50: '#b17fe3',
    500: '#8a48d5',
    950: '#000000',
  },
}
SCSS
$custom: #8a48d5;
$custom-light: #b17fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48d5",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 213
  },
  "hsl": {
    "h": 268.085,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.55344,
    "c": 0.20686,
    "h": 301.4
  },
  "luminance": 0.14842
}

Semantic roles & 50–950 ramp

primary
#8A48D5
secondary
#BEDA9F
accent
#E64299
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A48D5

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

Preview Lab → · Contrast checker → · Palette generator →

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