#8048D4#8048D4

#8048D4 is a mid, highly saturated violet. Relative luminance 0.140; OKLCH L 54.2% C 0.204 H 297.5°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#8048D4
RGBrgb(128, 72, 212)
HSLhsl(264, 62%, 56%)
HSVhsv(264, 66%, 83%)
CMYKcmyk(39.6%, 66%, 0%, 16.9%)
CIE-LABlab(44.20, 52.55, -63.53)
CIE-LCHlch(44.20, 82.44, 309.60°)
OKLaboklab(54.19% 0.0943 -0.1812)
OKLCHoklch(54.19% 0.204 297.5)
XYZxyz(23.1001, 13.9770, 63.7554)
Luminance0.1398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048D4 #9CD448
analogous
#4856D4 #8048D4 #C648D4
triadic
#8048D4 #D48048 #48D480
tetradic
#8048D4 #D44856 #9CD448 #48D4C6
square
#8048D4 #D44856 #9CD448 #48D4C6
split-complementary
#8048D4 #D4C648 #56D448
monochromatic
#471F83 #622AB4 #8048D4 #A27AE0 #C5ABEB

Accessibility & contrast

On white

5.53
#8048D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#8048D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048D4
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048D4#FFFFFF#000000##FFFFFF
##8048D41.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#6B6988
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8048d4;
/* rgb */ color: rgb(128, 72, 212);
/* oklch */ color: oklch(54.2% 0.204 297.5);
Tailwind
colors: {
  custom: {
    50: '#ab7ee2',
    500: '#8048d4',
    950: '#000000',
  },
}
SCSS
$custom: #8048d4;
$custom-light: #ab7ee2;
$custom-dark: #000000;
JSON
{
  "hex": "#8048d4",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 212
  },
  "hsl": {
    "h": 264,
    "s": 61.947,
    "l": 55.686
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.20427,
    "h": 297.5
  },
  "luminance": 0.13977
}

Semantic roles & 50–950 ramp

primary
#8048D4
secondary
#C2D99F
accent
#E543A4
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8048D4

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

Preview Lab → · Contrast checker → · Palette generator →

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