#7E52D7#7E52D7

#7E52D7 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.6% C 0.195 H 294.4°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7E52D7
RGBrgb(126, 82, 215)
HSLhsl(260, 62%, 58%)
HSVhsv(260, 62%, 84%)
CMYKcmyk(41.4%, 61.9%, 0%, 15.7%)
CIE-LABlab(46.14, 47.65, -62.10)
CIE-LCHlch(46.14, 78.28, 307.50°)
OKLaboklab(55.61% 0.0805 -0.1771)
OKLCHoklch(55.61% 0.195 294.4)
XYZxyz(23.8839, 15.3759, 65.9863)
Luminance0.1538 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52D7 #ABD752
analogous
#5268D7 #7E52D7 #C152D7
triadic
#7E52D7 #D77E52 #52D77E
tetradic
#7E52D7 #D75268 #ABD752 #52D7C1
square
#7E52D7 #D75268 #ABD752 #52D7C1
split-complementary
#7E52D7 #D7C152 #68D752
monochromatic
#45218E #5D2CC0 #7E52D7 #A384E2 #C8B5EE

Accessibility & contrast

On white

5.15
#7E52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7E52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52D7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52D7#FFFFFF#000000##FFFFFF
##7E52D71.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#66708D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e52d7;
/* rgb */ color: rgb(126, 82, 215);
/* oklch */ color: oklch(55.6% 0.195 294.4);
Tailwind
colors: {
  custom: {
    50: '#a985e4',
    500: '#7e52d7',
    950: '#000000',
  },
}
SCSS
$custom: #7e52d7;
$custom-light: #a985e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52d7",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 259.85,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55614,
    "c": 0.19454,
    "h": 294.4
  },
  "luminance": 0.15377
}

Semantic roles & 50–950 ramp

primary
#7E52D7
secondary
#CBDDA8
accent
#E642B0
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7E52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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