#7E52E4#7E52E4

#7E52E4 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.6% C 0.210 H 292.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#7E52E4
RGBrgb(126, 82, 228)
HSLhsl(258, 73%, 61%)
HSVhsv(258, 64%, 89%)
CMYKcmyk(44.7%, 64%, 0%, 10.6%)
CIE-LABlab(47.07, 51.15, -68.00)
CIE-LCHlch(47.07, 85.09, 306.95°)
OKLaboklab(56.57% 0.0794 -0.1944)
OKLCHoklch(56.57% 0.21 292.2)
XYZxyz(25.6212, 16.0708, 75.1358)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52E4 #B8E452
analogous
#526FE4 #7E52E4 #C752E4
triadic
#7E52E4 #E47E52 #52E47E
tetradic
#7E52E4 #E4526F #B8E452 #52E4C7
square
#7E52E4 #E4526F #B8E452 #52E4C7
split-complementary
#7E52E4 #E4C752 #6FE452
monochromatic
#4319A2 #5822D7 #7E52E4 #A587EC #CDBCF5

Accessibility & contrast

On white

4.98
#7E52E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E52E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52E4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52E4#FFFFFF#000000##FFFFFF
##7E52E41.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#607594
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e52e4;
/* rgb */ color: rgb(126, 82, 228);
/* oklch */ color: oklch(56.6% 0.210 292.2);
Tailwind
colors: {
  custom: {
    50: '#ab85ed',
    500: '#7e52e4',
    950: '#000000',
  },
}
SCSS
$custom: #7e52e4;
$custom-light: #ab85ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52e4",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 258.082,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56573,
    "c": 0.21002,
    "h": 292.2
  },
  "luminance": 0.16072
}

Semantic roles & 50–950 ramp

primary
#7E52E4
secondary
#D4E5AD
accent
#D5109A
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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