#7E52E5#7E52E5

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

Color values

HEX#7E52E5
RGBrgb(126, 82, 229)
HSLhsl(258, 74%, 61%)
HSVhsv(258, 64%, 90%)
CMYKcmyk(45%, 64.2%, 0%, 10.2%)
CIE-LABlab(47.14, 51.42, -68.45)
CIE-LCHlch(47.14, 85.61, 306.92°)
OKLaboklab(56.65% 0.0793 -0.1958)
OKLCHoklch(56.65% 0.211 292)
XYZxyz(25.7604, 16.1265, 75.8690)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52E5 #B9E552
analogous
#526FE5 #7E52E5 #C752E5
triadic
#7E52E5 #E57E52 #52E57E
tetradic
#7E52E5 #E5526F #B9E552 #52E5C7
square
#7E52E5 #E5526F #B9E552 #52E5C7
split-complementary
#7E52E5 #E5C752 #6FE552
monochromatic
#4219A4 #5821D9 #7E52E5 #A687ED #CDBCF5

Accessibility & contrast

On white

4.97
#7E52E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7E52E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52E5
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52E5#FFFFFF#000000##FFFFFF
##7E52E51.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EA
Deuteranopia (green-blind)
#006DE2
Tritanopia (blue-blind)
#5F7594
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e52e5;
/* rgb */ color: rgb(126, 82, 229);
/* oklch */ color: oklch(56.6% 0.211 292.0);
Tailwind
colors: {
  custom: {
    50: '#ab85ee',
    500: '#7e52e5',
    950: '#000000',
  },
}
SCSS
$custom: #7e52e5;
$custom-light: #ab85ee;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52e5",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 229
  },
  "hsl": {
    "h": 257.959,
    "s": 73.869,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56649,
    "c": 0.2112,
    "h": 292
  },
  "luminance": 0.16127
}

Semantic roles & 50–950 ramp

primary
#7E52E5
secondary
#D5E5AE
accent
#D6109B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E52E5

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

Preview Lab → · Contrast checker → · Palette generator →

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