#8048CA#8048CA

#8048CA is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.5% C 0.193 H 299.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8048CA
RGBrgb(128, 72, 202)
HSLhsl(266, 55%, 54%)
HSVhsv(266, 64%, 79%)
CMYKcmyk(36.6%, 64.4%, 0%, 20.8%)
CIE-LABlab(43.49, 50.00, -58.92)
CIE-LCHlch(43.49, 77.28, 310.32°)
OKLaboklab(53.45% 0.0954 -0.1676)
OKLCHoklch(53.45% 0.193 299.6)
XYZxyz(21.8775, 13.4880, 57.3165)
Luminance0.1349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048CA #92CA48
analogous
#4851CA #8048CA #C148CA
triadic
#8048CA #CA8048 #48CA80
tetradic
#8048CA #CA4851 #92CA48 #48CAC1
square
#8048CA #CA4851 #92CA48 #48CAC1
split-complementary
#8048CA #CAC148 #51CA48
monochromatic
#462276 #6230A5 #8048CA #A177D8 #C2A7E5

Accessibility & contrast

On white

5.68
#8048CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8048CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048CA
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048CA#FFFFFF#000000##FFFFFF
##8048CA1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CE
Deuteranopia (green-blind)
#0166C7
Tritanopia (blue-blind)
#6F6583
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8048ca;
/* rgb */ color: rgb(128, 72, 202);
/* oklch */ color: oklch(53.5% 0.193 299.6);
Tailwind
colors: {
  custom: {
    50: '#aa7edb',
    500: '#8048ca',
    950: '#000000',
  },
}
SCSS
$custom: #8048ca;
$custom-light: #aa7edb;
$custom-dark: #000000;
JSON
{
  "hex": "#8048ca",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 265.846,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.53454,
    "c": 0.19287,
    "h": 299.6
  },
  "luminance": 0.13488
}

Semantic roles & 50–950 ramp

primary
#8048CA
secondary
#BBD39B
accent
#DE499E
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #8048CA

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

Preview Lab → · Contrast checker → · Palette generator →

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