#8048D7#8048D7

#8048D7 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.4% C 0.208 H 296.9°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8048D7
RGBrgb(128, 72, 215)
HSLhsl(263, 64%, 56%)
HSVhsv(263, 67%, 84%)
CMYKcmyk(40.5%, 66.5%, 0%, 15.7%)
CIE-LABlab(44.42, 53.31, -64.89)
CIE-LCHlch(44.42, 83.98, 309.41°)
OKLaboklab(54.42% 0.0939 -0.1852)
OKLCHoklch(54.42% 0.208 296.9)
XYZxyz(23.4820, 14.1298, 65.7669)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048D7 #9FD748
analogous
#4858D7 #8048D7 #C848D7
triadic
#8048D7 #D78048 #48D780
tetradic
#8048D7 #D74858 #9FD748 #48D7C8
square
#8048D7 #D74858 #9FD748 #48D7C8
split-complementary
#8048D7 #D7C848 #58D748
monochromatic
#471E87 #6129B9 #8048D7 #A37AE2 #C6ACED

Accessibility & contrast

On white

5.49
#8048D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8048D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048D7
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048D7#FFFFFF#000000##FFFFFF
##8048D71.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#0067D4
Tritanopia (blue-blind)
#6A6A8A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8048d7;
/* rgb */ color: rgb(128, 72, 215);
/* oklch */ color: oklch(54.4% 0.208 296.9);
Tailwind
colors: {
  custom: {
    50: '#ab7fe4',
    500: '#8048d7',
    950: '#000000',
  },
}
SCSS
$custom: #8048d7;
$custom-light: #ab7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#8048d7",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 215
  },
  "hsl": {
    "h": 263.497,
    "s": 64.126,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54416,
    "c": 0.20767,
    "h": 296.9
  },
  "luminance": 0.1413
}

Semantic roles & 50–950 ramp

primary
#8048D7
secondary
#C4DBA0
accent
#E741A6
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8048D7

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

Preview Lab → · Contrast checker → · Palette generator →

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