#7E52D2#7E52D2

#7E52D2 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 55.3% C 0.189 H 295.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#7E52D2
RGBrgb(126, 82, 210)
HSLhsl(261, 59%, 57%)
HSVhsv(261, 61%, 82%)
CMYKcmyk(40%, 61%, 0%, 17.6%)
CIE-LABlab(45.80, 46.32, -59.80)
CIE-LCHlch(45.80, 75.64, 307.76°)
OKLaboklab(55.26% 0.0808 -0.1703)
OKLCHoklch(55.26% 0.189 295.4)
XYZxyz(23.2513, 15.1229, 62.6542)
Luminance0.1512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52D2 #A6D252
analogous
#5266D2 #7E52D2 #BE52D2
triadic
#7E52D2 #D27E52 #52D27E
tetradic
#7E52D2 #D25266 #A6D252 #52D2BE
square
#7E52D2 #D25266 #A6D252 #52D2BE
split-complementary
#7E52D2 #D2BE52 #66D252
monochromatic
#452387 #5E30B7 #7E52D2 #A283DF #C6B3EB

Accessibility & contrast

On white

5.22
#7E52D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#7E52D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52D2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52D2#FFFFFF#000000##FFFFFF
##7E52D21.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#086BCF
Tritanopia (blue-blind)
#696E8A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e52d2;
/* rgb */ color: rgb(126, 82, 210);
/* oklch */ color: oklch(55.3% 0.189 295.4);
Tailwind
colors: {
  custom: {
    50: '#a985e1',
    500: '#7e52d2',
    950: '#000000',
  },
}
SCSS
$custom: #7e52d2;
$custom-light: #a985e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52d2",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 210
  },
  "hsl": {
    "h": 260.625,
    "s": 58.716,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55256,
    "c": 0.18852,
    "h": 295.4
  },
  "luminance": 0.15123
}

Semantic roles & 50–950 ramp

primary
#7E52D2
secondary
#C8DAA6
accent
#E246AC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E52D2

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

Preview Lab → · Contrast checker → · Palette generator →

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