#7E52DB#7E52DB

#7E52DB is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.9% C 0.199 H 293.7°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E52DB
RGBrgb(126, 82, 219)
HSLhsl(259, 66%, 59%)
HSVhsv(259, 63%, 86%)
CMYKcmyk(42.5%, 62.6%, 0%, 14.1%)
CIE-LABlab(46.42, 48.73, -63.93)
CIE-LCHlch(46.42, 80.38, 307.31°)
OKLaboklab(55.91% 0.0802 -0.1825)
OKLCHoklch(55.91% 0.199 293.7)
XYZxyz(24.4042, 15.5840, 68.7263)
Luminance0.1558 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52DB #AFDB52
analogous
#526BDB #7E52DB #C352DB
triadic
#7E52DB #DB7E52 #52DB7E
tetradic
#7E52DB #DB526B #AFDB52 #52DBC3
square
#7E52DB #DB526B #AFDB52 #52DBC3
split-complementary
#7E52DB #DBC352 #6BDB52
monochromatic
#441F94 #5C29C6 #7E52DB #A485E6 #CAB7F0

Accessibility & contrast

On white

5.10
#7E52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7E52DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52DB
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52DB#FFFFFF#000000##FFFFFF
##7E52DB1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#65728F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e52db;
/* rgb */ color: rgb(126, 82, 219);
/* oklch */ color: oklch(55.9% 0.199 293.7);
Tailwind
colors: {
  custom: {
    50: '#aa85e7',
    500: '#7e52db',
    950: '#000000',
  },
}
SCSS
$custom: #7e52db;
$custom-light: #aa85e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52db",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 259.27,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55905,
    "c": 0.19933,
    "h": 293.7
  },
  "luminance": 0.15585
}

Semantic roles & 50–950 ramp

primary
#7E52DB
secondary
#CEDFAA
accent
#E93FB2
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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