#7E52DC#7E52DC

#7E52DC is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.0% C 0.201 H 293.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7E52DC
RGBrgb(126, 82, 220)
HSLhsl(259, 66%, 59%)
HSVhsv(259, 63%, 86%)
CMYKcmyk(42.7%, 62.7%, 0%, 13.7%)
CIE-LABlab(46.49, 48.99, -64.39)
CIE-LCHlch(46.49, 80.91, 307.27°)
OKLaboklab(55.98% 0.0801 -0.1838)
OKLCHoklch(55.98% 0.201 293.6)
XYZxyz(24.5362, 15.6368, 69.4217)
Luminance0.1564 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52DC #B0DC52
analogous
#526BDC #7E52DC #C352DC
triadic
#7E52DC #DC7E52 #52DC7E
tetradic
#7E52DC #DC526B #B0DC52 #52DCC3
square
#7E52DC #DC526B #B0DC52 #52DCC3
split-complementary
#7E52DC #DCC352 #6BDC52
monochromatic
#441E95 #5B29C8 #7E52DC #A485E6 #CAB8F1

Accessibility & contrast

On white

5.09
#7E52DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7E52DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52DC
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52DC#FFFFFF#000000##FFFFFF
##7E52DC1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E0
Deuteranopia (green-blind)
#006CD9
Tritanopia (blue-blind)
#647290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e52dc;
/* rgb */ color: rgb(126, 82, 220);
/* oklch */ color: oklch(56.0% 0.201 293.6);
Tailwind
colors: {
  custom: {
    50: '#aa85e8',
    500: '#7e52dc',
    950: '#000000',
  },
}
SCSS
$custom: #7e52dc;
$custom-light: #aa85e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52dc",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 220
  },
  "hsl": {
    "h": 259.13,
    "s": 66.346,
    "l": 59.216
  },
  "oklch": {
    "l": 0.55978,
    "c": 0.20053,
    "h": 293.6
  },
  "luminance": 0.15638
}

Semantic roles & 50–950 ramp

primary
#7E52DC
secondary
#CFE0AA
accent
#E93FB3
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52DC

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

Preview Lab → · Contrast checker → · Palette generator →

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