#7E52D4#7E52D4

#7E52D4 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.191 H 295.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7E52D4
RGBrgb(126, 82, 212)
HSLhsl(260, 60%, 58%)
HSVhsv(260, 61%, 83%)
CMYKcmyk(40.6%, 61.3%, 0%, 16.9%)
CIE-LABlab(45.94, 46.85, -60.72)
CIE-LCHlch(45.94, 76.70, 307.65°)
OKLaboklab(55.4% 0.0807 -0.173)
OKLCHoklch(55.4% 0.191 295)
XYZxyz(23.5020, 15.2231, 63.9747)
Luminance0.1522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52D4 #A8D452
analogous
#5267D4 #7E52D4 #BF52D4
triadic
#7E52D4 #D47E52 #52D47E
tetradic
#7E52D4 #D45267 #A8D452 #52D4BF
square
#7E52D4 #D45267 #A8D452 #52D4BF
split-complementary
#7E52D4 #D4BF52 #67D452
monochromatic
#452289 #5E2EBA #7E52D4 #A383E0 #C7B4EC

Accessibility & contrast

On white

5.19
#7E52D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7E52D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52D4
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52D4#FFFFFF#000000##FFFFFF
##7E52D41.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ED8
Deuteranopia (green-blind)
#006BD1
Tritanopia (blue-blind)
#686F8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e52d4;
/* rgb */ color: rgb(126, 82, 212);
/* oklch */ color: oklch(55.4% 0.191 295.0);
Tailwind
colors: {
  custom: {
    50: '#a985e2',
    500: '#7e52d4',
    950: '#000000',
  },
}
SCSS
$custom: #7e52d4;
$custom-light: #a985e2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52d4",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 212
  },
  "hsl": {
    "h": 260.308,
    "s": 60.185,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55398,
    "c": 0.19093,
    "h": 295
  },
  "luminance": 0.15224
}

Semantic roles & 50–950 ramp

primary
#7E52D4
secondary
#C9DBA7
accent
#E344AE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E52D4

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

Preview Lab → · Contrast checker → · Palette generator →

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