#8052CC#8052CC

#8052CC is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.181 H 297.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#8052CC
RGBrgb(128, 82, 204)
HSLhsl(263, 54%, 56%)
HSVhsv(263, 60%, 80%)
CMYKcmyk(37.3%, 59.8%, 0%, 20%)
CIE-LABlab(45.61, 45.18, -56.65)
CIE-LCHlch(45.61, 72.46, 308.57°)
OKLaboklab(55.04% 0.0837 -0.161)
OKLCHoklch(55.04% 0.181 297.5)
XYZxyz(22.8157, 14.9831, 58.8050)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8052CC #9ECC52
analogous
#5261CC #8052CC #BD52CC
triadic
#8052CC #CC8052 #52CC80
tetradic
#8052CC #CC5261 #9ECC52 #52CCBD
square
#8052CC #CC5261 #9ECC52 #52CCBD
split-complementary
#8052CC #CCBD52 #61CC52
monochromatic
#47257E #6133AE #8052CC #A381DA #C5B1E8

Accessibility & contrast

On white

5.25
#8052CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#8052CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8052CC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8052CC#FFFFFF#000000##FFFFFF
##8052CC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#206BC9
Tritanopia (blue-blind)
#6E6C87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8052cc;
/* rgb */ color: rgb(128, 82, 204);
/* oklch */ color: oklch(55.0% 0.181 297.5);
Tailwind
colors: {
  custom: {
    50: '#aa85dc',
    500: '#8052cc',
    950: '#000000',
  },
}
SCSS
$custom: #8052cc;
$custom-light: #aa85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8052cc",
  "rgb": {
    "r": 128,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 262.623,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55037,
    "c": 0.18147,
    "h": 297.5
  },
  "luminance": 0.14983
}

Semantic roles & 50–950 ramp

primary
#8052CC
secondary
#C3D6A4
accent
#DE4AA6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #8052CC

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

Preview Lab → · Contrast checker → · Palette generator →

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