#7E52D9#7E52D9

#7E52D9 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.8% C 0.197 H 294.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7E52D9
RGBrgb(126, 82, 217)
HSLhsl(260, 64%, 59%)
HSVhsv(260, 62%, 85%)
CMYKcmyk(41.9%, 62.2%, 0%, 14.9%)
CIE-LABlab(46.28, 48.19, -63.02)
CIE-LCHlch(46.28, 79.33, 307.40°)
OKLaboklab(55.76% 0.0804 -0.1798)
OKLCHoklch(55.76% 0.197 294.1)
XYZxyz(24.1425, 15.4793, 67.3480)
Luminance0.1548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52D9 #ADD952
analogous
#5269D9 #7E52D9 #C252D9
triadic
#7E52D9 #D97E52 #52D97E
tetradic
#7E52D9 #D95269 #ADD952 #52D9C2
square
#7E52D9 #D95269 #ADD952 #52D9C2
split-complementary
#7E52D9 #D9C252 #69D952
monochromatic
#452091 #5C2BC3 #7E52D9 #A384E4 #C9B6EF

Accessibility & contrast

On white

5.13
#7E52D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7E52D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52D9
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52D9#FFFFFF#000000##FFFFFF
##7E52D91.005.134.105.13
#FFFFFF5.131.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDD
Deuteranopia (green-blind)
#006BD6
Tritanopia (blue-blind)
#65718E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e52d9;
/* rgb */ color: rgb(126, 82, 217);
/* oklch */ color: oklch(55.8% 0.197 294.1);
Tailwind
colors: {
  custom: {
    50: '#aa85e6',
    500: '#7e52d9',
    950: '#000000',
  },
}
SCSS
$custom: #7e52d9;
$custom-light: #aa85e6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52d9",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 217
  },
  "hsl": {
    "h": 259.556,
    "s": 63.981,
    "l": 58.627
  },
  "oklch": {
    "l": 0.55759,
    "c": 0.19695,
    "h": 294.1
  },
  "luminance": 0.1548
}

Semantic roles & 50–950 ramp

primary
#7E52D9
secondary
#CDDEA9
accent
#E741B1
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52D9

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

Preview Lab → · Contrast checker → · Palette generator →

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