#8052BA#8052BA

#8052BA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.8% C 0.160 H 301.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8052BA
RGBrgb(128, 82, 186)
HSLhsl(267, 43%, 53%)
HSVhsv(267, 56%, 73%)
CMYKcmyk(31.2%, 55.9%, 0%, 27.1%)
CIE-LABlab(44.47, 40.55, -48.04)
CIE-LCHlch(44.47, 62.86, 310.17°)
OKLaboklab(53.84% 0.0838 -0.1357)
OKLCHoklch(53.84% 0.16 301.7)
XYZxyz(20.7803, 14.1689, 48.0850)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8052BA #8CBA52
analogous
#5258BA #8052BA #B452BA
triadic
#8052BA #BA8052 #52BA80
tetradic
#8052BA #BA5258 #8CBA52 #52BAB4
square
#8052BA #BA5258 #8CBA52 #52BAB4
split-complementary
#8052BA #BAB452 #58BA52
monochromatic
#452A68 #623B94 #8052BA #A07ECB #C0AADD

Accessibility & contrast

On white

5.48
#8052BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8052BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8052BA
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8052BA#FFFFFF#000000##FFFFFF
##8052BA1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2868BD
Deuteranopia (green-blind)
#3869B8
Tritanopia (blue-blind)
#75667E
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8052ba;
/* rgb */ color: rgb(128, 82, 186);
/* oklch */ color: oklch(53.8% 0.160 301.7);
Tailwind
colors: {
  custom: {
    50: '#a884cf',
    500: '#8052ba',
    950: '#000000',
  },
}
SCSS
$custom: #8052ba;
$custom-light: #a884cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8052ba",
  "rgb": {
    "r": 128,
    "g": 82,
    "b": 186
  },
  "hsl": {
    "h": 266.538,
    "s": 42.975,
    "l": 52.549
  },
  "oklch": {
    "l": 0.5384,
    "c": 0.1595,
    "h": 301.7
  },
  "luminance": 0.14169
}

Semantic roles & 50–950 ramp

primary
#8052BA
secondary
#B7CA9D
accent
#D3559B
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #8052BA

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

Preview Lab → · Contrast checker → · Palette generator →

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