#8048CC#8048CC

#8048CC is a mid, vivid violet. Relative luminance 0.136; OKLCH L 53.6% C 0.195 H 299.2°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#8048CC
RGBrgb(128, 72, 204)
HSLhsl(265, 56%, 54%)
HSVhsv(265, 65%, 80%)
CMYKcmyk(37.3%, 64.7%, 0%, 20%)
CIE-LABlab(43.63, 50.51, -59.85)
CIE-LCHlch(43.63, 78.31, 310.16°)
OKLaboklab(53.6% 0.0952 -0.1704)
OKLCHoklch(53.6% 0.195 299.2)
XYZxyz(22.1158, 13.5833, 58.5717)
Luminance0.1358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048CC #94CC48
analogous
#4852CC #8048CC #C248CC
triadic
#8048CC #CC8048 #48CC80
tetradic
#8048CC #CC4852 #94CC48 #48CCC2
square
#8048CC #CC4852 #94CC48 #48CCC2
split-complementary
#8048CC #CCC248 #52CC48
monochromatic
#462178 #622FA8 #8048CC #A178D9 #C2A8E7

Accessibility & contrast

On white

5.65
#8048CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8048CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048CC
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048CC#FFFFFF#000000##FFFFFF
##8048CC1.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D0
Deuteranopia (green-blind)
#0066C9
Tritanopia (blue-blind)
#6F6684
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8048cc;
/* rgb */ color: rgb(128, 72, 204);
/* oklch */ color: oklch(53.6% 0.195 299.2);
Tailwind
colors: {
  custom: {
    50: '#aa7edc',
    500: '#8048cc',
    950: '#000000',
  },
}
SCSS
$custom: #8048cc;
$custom-light: #aa7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8048cc",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 265.455,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53599,
    "c": 0.19517,
    "h": 299.2
  },
  "luminance": 0.13584
}

Semantic roles & 50–950 ramp

primary
#8048CC
secondary
#BCD49C
accent
#E0489F
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8048CC

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

Preview Lab → · Contrast checker → · Palette generator →

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