#8048C2#8048C2

#8048C2 is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.9% C 0.184 H 301.5°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8048C2
RGBrgb(128, 72, 194)
HSLhsl(268, 50%, 52%)
HSVhsv(268, 63%, 76%)
CMYKcmyk(34%, 62.9%, 0%, 23.9%)
CIE-LABlab(42.94, 47.99, -55.16)
CIE-LCHlch(42.94, 73.12, 311.02°)
OKLaboklab(52.88% 0.096 -0.1566)
OKLCHoklch(52.88% 0.184 301.5)
XYZxyz(20.9547, 13.1189, 52.4567)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048C2 #8AC248
analogous
#484DC2 #8048C2 #BD48C2
triadic
#8048C2 #C28048 #48C280
tetradic
#8048C2 #C2484D #8AC248 #48C2BD
square
#8048C2 #C2484D #8AC248 #48C2BD
split-complementary
#8048C2 #C2BD48 #4DC248
monochromatic
#45246C #62339A #8048C2 #A076D1 #C0A4E1

Accessibility & contrast

On white

5.80
#8048C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8048C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048C2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048C2#FFFFFF#000000##FFFFFF
##8048C21.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#1D65BF
Tritanopia (blue-blind)
#72627E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8048c2;
/* rgb */ color: rgb(128, 72, 194);
/* oklch */ color: oklch(52.9% 0.184 301.5);
Tailwind
colors: {
  custom: {
    50: '#a97ed5',
    500: '#8048c2',
    950: '#000000',
  },
}
SCSS
$custom: #8048c2;
$custom-light: #a97ed5;
$custom-dark: #000000;
JSON
{
  "hex": "#8048c2",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 267.541,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52884,
    "c": 0.1837,
    "h": 301.5
  },
  "luminance": 0.13119
}

Semantic roles & 50–950 ramp

primary
#8048C2
secondary
#B5CE98
accent
#DA4E9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100A14
muted
#7F7C83

Preview Lab

Preview with #8048C2

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

Preview Lab → · Contrast checker → · Palette generator →

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