#8048CB#8048CB

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

Color values

HEX#8048CB
RGBrgb(128, 72, 203)
HSLhsl(266, 56%, 54%)
HSVhsv(266, 65%, 80%)
CMYKcmyk(36.9%, 64.5%, 0%, 20.4%)
CIE-LABlab(43.56, 50.26, -59.38)
CIE-LCHlch(43.56, 77.80, 310.24°)
OKLaboklab(53.53% 0.0953 -0.169)
OKLCHoklch(53.53% 0.194 299.4)
XYZxyz(21.9963, 13.5355, 57.9421)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8048CB #93CB48
analogous
#4852CB #8048CB #C248CB
triadic
#8048CB #CB8048 #48CB80
tetradic
#8048CB #CB4852 #93CB48 #48CBC2
square
#8048CB #CB4852 #93CB48 #48CBC2
split-complementary
#8048CB #CBC248 #52CB48
monochromatic
#462277 #622FA6 #8048CB #A178D9 #C2A7E6

Accessibility & contrast

On white

5.66
#8048CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8048CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8048CB
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8048CB#FFFFFF#000000##FFFFFF
##8048CB1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#0066C8
Tritanopia (blue-blind)
#6F6683
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8048cb;
/* rgb */ color: rgb(128, 72, 203);
/* oklch */ color: oklch(53.5% 0.194 299.4);
Tailwind
colors: {
  custom: {
    50: '#aa7edc',
    500: '#8048cb',
    950: '#000000',
  },
}
SCSS
$custom: #8048cb;
$custom-light: #aa7edc;
$custom-dark: #000000;
JSON
{
  "hex": "#8048cb",
  "rgb": {
    "r": 128,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 265.649,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53526,
    "c": 0.19402,
    "h": 299.4
  },
  "luminance": 0.13536
}

Semantic roles & 50–950 ramp

primary
#8048CB
secondary
#BBD39B
accent
#DF499F
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #8048CB

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

Preview Lab → · Contrast checker → · Palette generator →

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