#8048D6#8048D6

#8048D6 is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.3% C 0.207 H 297.1°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#8048D6
RGBrgb(128, 72, 214)
HSLhsl(264, 63%, 56%)
HSVhsv(264, 66%, 84%)
CMYKcmyk(40.2%, 66.4%, 0%, 16.1%)
CIE-LABlab(44.35, 53.06, -64.44)
CIE-LCHlch(44.35, 83.47, 309.47°)
OKLaboklab(54.34% 0.094 -0.1839)
OKLCHoklch(54.34% 0.207 297.1)
XYZxyz(23.3539, 14.0785, 65.0923)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048D6 #9ED648
analogous
#4857D6 #8048D6 #C748D6
triadic
#8048D6 #D68048 #48D680
tetradic
#8048D6 #D64857 #9ED648 #48D6C7
square
#8048D6 #D64857 #9ED648 #48D6C7
split-complementary
#8048D6 #D6C748 #57D648
monochromatic
#471E86 #6129B8 #8048D6 #A37AE1 #C5ACEC

Accessibility & contrast

On white

5.50
#8048D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8048D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048D6
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048D6#FFFFFF#000000##FFFFFF
##8048D61.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DA
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#6B6989
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8048d6;
/* rgb */ color: rgb(128, 72, 214);
/* oklch */ color: oklch(54.3% 0.207 297.1);
Tailwind
colors: {
  custom: {
    50: '#ab7fe4',
    500: '#8048d6',
    950: '#000000',
  },
}
SCSS
$custom: #8048d6;
$custom-light: #ab7fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#8048d6",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 214
  },
  "hsl": {
    "h": 263.662,
    "s": 63.393,
    "l": 56.078
  },
  "oklch": {
    "l": 0.5434,
    "c": 0.20653,
    "h": 297.1
  },
  "luminance": 0.14079
}

Semantic roles & 50–950 ramp

primary
#8048D6
secondary
#C3DAA0
accent
#E641A5
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #8048D6

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

Preview Lab → · Contrast checker → · Palette generator →

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