#7E52DF#7E52DF

#7E52DF is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.2% C 0.204 H 293.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7E52DF
RGBrgb(126, 82, 223)
HSLhsl(259, 69%, 60%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(43.5%, 63.2%, 0%, 12.5%)
CIE-LABlab(46.71, 49.80, -65.75)
CIE-LCHlch(46.71, 82.48, 307.14°)
OKLaboklab(56.2% 0.0799 -0.1878)
OKLCHoklch(56.2% 0.204 293)
XYZxyz(24.9371, 15.7972, 71.5330)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52DF #B3DF52
analogous
#526DDF #7E52DF #C452DF
triadic
#7E52DF #DF7E52 #52DF7E
tetradic
#7E52DF #DF526D #B3DF52 #52DFC4
square
#7E52DF #DF526D #B3DF52 #52DFC4
split-complementary
#7E52DF #DFC452 #6DDF52
monochromatic
#441D9A #5A26CE #7E52DF #A586E9 #CBB9F2

Accessibility & contrast

On white

5.05
#7E52DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7E52DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52DF
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52DF#FFFFFF#000000##FFFFFF
##7E52DF1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#637391
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7e52df;
/* rgb */ color: rgb(126, 82, 223);
/* oklch */ color: oklch(56.2% 0.204 293.0);
Tailwind
colors: {
  custom: {
    50: '#aa85ea',
    500: '#7e52df',
    950: '#000000',
  },
}
SCSS
$custom: #7e52df;
$custom-light: #aa85ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52df",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 258.723,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56199,
    "c": 0.2041,
    "h": 293
  },
  "luminance": 0.15798
}

Semantic roles & 50–950 ramp

primary
#7E52DF
secondary
#D1E2AB
accent
#EC3CB5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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