#7A52DC#7A52DC

#7A52DC is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.6% C 0.200 H 291.9°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7A52DC
RGBrgb(122, 82, 220)
HSLhsl(257, 66%, 59%)
HSVhsv(257, 63%, 86%)
CMYKcmyk(44.5%, 62.7%, 0%, 13.7%)
CIE-LABlab(46.09, 48.20, -65.06)
CIE-LCHlch(46.09, 80.96, 306.53°)
OKLaboklab(55.59% 0.0748 -0.1859)
OKLCHoklch(55.59% 0.2 291.9)
XYZxyz(23.9580, 15.3387, 69.3946)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52DC #B4DC52
analogous
#526FDC #7A52DC #BF52DC
triadic
#7A52DC #DC7A52 #52DC7A
tetradic
#7A52DC #DC526F #B4DC52 #52DCBF
square
#7A52DC #DC526F #B4DC52 #52DCBF
split-complementary
#7A52DC #DCBF52 #6FDC52
monochromatic
#411E95 #5729C8 #7A52DC #A185E6 #C8B8F1

Accessibility & contrast

On white

5.16
#7A52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7A52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52DC
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52DC#FFFFFF#000000##FFFFFF
##7A52DC1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006AD9
Tritanopia (blue-blind)
#5D728F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a52dc;
/* rgb */ color: rgb(122, 82, 220);
/* oklch */ color: oklch(55.6% 0.200 291.9);
Tailwind
colors: {
  custom: {
    50: '#a785e8',
    500: '#7a52dc',
    950: '#000000',
  },
}
SCSS
$custom: #7a52dc;
$custom-light: #a785e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52dc",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 257.391,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55594,
    "c": 0.2004,
    "h": 291.9
  },
  "luminance": 0.15339
}

Semantic roles & 50–950 ramp

primary
#7A52DC
secondary
#D0E0AA
accent
#E93FB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A52DC

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

Preview Lab → · Contrast checker → · Palette generator →

#7A52DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva