#7E52D8#7E52D8

#7E52D8 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.196 H 294.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E52D8
RGBrgb(126, 82, 216)
HSLhsl(260, 63%, 58%)
HSVhsv(260, 62%, 85%)
CMYKcmyk(41.7%, 62%, 0%, 15.3%)
CIE-LABlab(46.21, 47.92, -62.56)
CIE-LCHlch(46.21, 78.81, 307.45°)
OKLaboklab(55.69% 0.0804 -0.1784)
OKLCHoklch(55.69% 0.196 294.3)
XYZxyz(24.0128, 15.4275, 66.6651)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52D8 #ACD852
analogous
#5269D8 #7E52D8 #C152D8
triadic
#7E52D8 #D87E52 #52D87E
tetradic
#7E52D8 #D85269 #ACD852 #52D8C1
square
#7E52D8 #D85269 #ACD852 #52D8C1
split-complementary
#7E52D8 #D8C152 #69D852
monochromatic
#45208F #5D2CC1 #7E52D8 #A384E3 #C8B6EF

Accessibility & contrast

On white

5.14
#7E52D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7E52D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52D8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52D8#FFFFFF#000000##FFFFFF
##7E52D81.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#66708D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e52d8;
/* rgb */ color: rgb(126, 82, 216);
/* oklch */ color: oklch(55.7% 0.196 294.3);
Tailwind
colors: {
  custom: {
    50: '#a985e5',
    500: '#7e52d8',
    950: '#000000',
  },
}
SCSS
$custom: #7e52d8;
$custom-light: #a985e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52d8",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 259.701,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55686,
    "c": 0.19574,
    "h": 294.3
  },
  "luminance": 0.15428
}

Semantic roles & 50–950 ramp

primary
#7E52D8
secondary
#CCDDA8
accent
#E642B0
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7E52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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