#8048D2#8048D2

#8048D2 is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.0% C 0.202 H 297.9°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#8048D2
RGBrgb(128, 72, 210)
HSLhsl(264, 61%, 55%)
HSVhsv(264, 66%, 82%)
CMYKcmyk(39%, 65.7%, 0%, 17.6%)
CIE-LABlab(44.06, 52.04, -62.61)
CIE-LCHlch(44.06, 81.41, 309.73°)
OKLaboklab(54.04% 0.0945 -0.1785)
OKLCHoklch(54.04% 0.202 297.9)
XYZxyz(22.8493, 13.8767, 62.4349)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048D2 #9AD248
analogous
#4855D2 #8048D2 #C548D2
triadic
#8048D2 #D28048 #48D280
tetradic
#8048D2 #D24855 #9AD248 #48D2C5
square
#8048D2 #D24855 #9AD248 #48D2C5
split-complementary
#8048D2 #D2C548 #55D248
monochromatic
#472080 #622CB1 #8048D2 #A279DE #C4AAEA

Accessibility & contrast

On white

5.56
#8048D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#8048D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048D2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048D2#FFFFFF#000000##FFFFFF
##8048D21.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#0067CF
Tritanopia (blue-blind)
#6C6887
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8048d2;
/* rgb */ color: rgb(128, 72, 210);
/* oklch */ color: oklch(54.0% 0.202 297.9);
Tailwind
colors: {
  custom: {
    50: '#ab7ee1',
    500: '#8048d2',
    950: '#000000',
  },
}
SCSS
$custom: #8048d2;
$custom-light: #ab7ee1;
$custom-dark: #000000;
JSON
{
  "hex": "#8048d2",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 210
  },
  "hsl": {
    "h": 264.348,
    "s": 60.526,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54041,
    "c": 0.202,
    "h": 297.9
  },
  "luminance": 0.13877
}

Semantic roles & 50–950 ramp

primary
#8048D2
secondary
#C0D89E
accent
#E444A3
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8048D2

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

Preview Lab → · Contrast checker → · Palette generator →

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