#8A48D4#8A48D4

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

Color values

HEX#8A48D4
RGBrgb(138, 72, 212)
HSLhsl(268, 62%, 56%)
HSVhsv(268, 66%, 83%)
CMYKcmyk(34.9%, 66%, 0%, 16.9%)
CIE-LABlab(45.35, 54.56, -61.61)
CIE-LCHlch(45.35, 82.30, 311.52°)
OKLaboklab(55.27% 0.1078 -0.1752)
OKLCHoklch(55.27% 0.206 301.6)
XYZxyz(24.6794, 14.7914, 63.8294)
Luminance0.1479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48D4 #92D448
analogous
#484CD4 #8A48D4 #D048D4
triadic
#8A48D4 #D48A48 #48D48A
tetradic
#8A48D4 #D4484C #92D448 #48D4D0
square
#8A48D4 #D4484C #92D448 #48D4D0
split-complementary
#8A48D4 #D4D048 #4CD448
monochromatic
#4E1F83 #6B2AB4 #8A48D4 #AA7AE0 #C9ABEB

Accessibility & contrast

On white

5.31
#8A48D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#8A48D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48D4
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48D4#FFFFFF#000000##FFFFFF
##8A48D41.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD8
Deuteranopia (green-blind)
#006BD1
Tritanopia (blue-blind)
#7B6888
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a48d4;
/* rgb */ color: rgb(138, 72, 212);
/* oklch */ color: oklch(55.3% 0.206 301.6);
Tailwind
colors: {
  custom: {
    50: '#b17fe2',
    500: '#8a48d4',
    950: '#000000',
  },
}
SCSS
$custom: #8a48d4;
$custom-light: #b17fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48d4",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 268.286,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.55271,
    "c": 0.20576,
    "h": 301.6
  },
  "luminance": 0.14791
}

Semantic roles & 50–950 ramp

primary
#8A48D4
secondary
#BED99F
accent
#E54399
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A48D4

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

Preview Lab → · Contrast checker → · Palette generator →

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