#8048D5#8048D5

#8048D5 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.3% C 0.205 H 297.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#8048D5
RGBrgb(128, 72, 213)
HSLhsl(264, 63%, 56%)
HSVhsv(264, 66%, 84%)
CMYKcmyk(39.9%, 66.2%, 0%, 16.5%)
CIE-LABlab(44.27, 52.80, -63.98)
CIE-LCHlch(44.27, 82.96, 309.53°)
OKLaboklab(54.26% 0.0942 -0.1825)
OKLCHoklch(54.26% 0.205 297.3)
XYZxyz(23.2266, 14.0276, 64.4218)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048D5 #9DD548
analogous
#4856D5 #8048D5 #C748D5
triadic
#8048D5 #D58048 #48D580
tetradic
#8048D5 #D54856 #9DD548 #48D5C7
square
#8048D5 #D54856 #9DD548 #48D5C7
split-complementary
#8048D5 #D5C748 #56D548
monochromatic
#471E84 #612AB6 #8048D5 #A37AE0 #C5ACEC

Accessibility & contrast

On white

5.52
#8048D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8048D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048D5
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048D5#FFFFFF#000000##FFFFFF
##8048D51.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D9
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#6B6988
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8048d5;
/* rgb */ color: rgb(128, 72, 213);
/* oklch */ color: oklch(54.3% 0.205 297.3);
Tailwind
colors: {
  custom: {
    50: '#ab7ee3',
    500: '#8048d5',
    950: '#000000',
  },
}
SCSS
$custom: #8048d5;
$custom-light: #ab7ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#8048d5",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 213
  },
  "hsl": {
    "h": 263.83,
    "s": 62.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.54265,
    "c": 0.20541,
    "h": 297.3
  },
  "luminance": 0.14028
}

Semantic roles & 50–950 ramp

primary
#8048D5
secondary
#C2DA9F
accent
#E642A5
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8048D5

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

Preview Lab → · Contrast checker → · Palette generator →

#8048D5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva