#7E52EF#7E52EF

#7E52EF is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.4% C 0.223 H 290.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E52EF
RGBrgb(126, 82, 239)
HSLhsl(257, 83%, 63%)
HSVhsv(257, 66%, 94%)
CMYKcmyk(47.3%, 65.7%, 0%, 6.3%)
CIE-LABlab(47.88, 54.13, -72.88)
CIE-LCHlch(47.88, 90.78, 306.60°)
OKLaboklab(57.42% 0.0781 -0.2088)
OKLCHoklch(57.42% 0.223 290.5)
XYZxyz(27.1970, 16.7012, 83.4353)
Luminance0.1670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52EF #C3EF52
analogous
#5274EF #7E52EF #CC52EF
triadic
#7E52EF #EF7E52 #52EF7E
tetradic
#7E52EF #EF5274 #C3EF52 #52EFCC
square
#7E52EF #EF5274 #C3EF52 #52EFCC
split-complementary
#7E52EF #EFCC52 #74EF52
monochromatic
#3F11B6 #541AEA #7E52EF #A88AF4 #D2C2F9

Accessibility & contrast

On white

4.84
#7E52EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#7E52EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52EF
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52EF#FFFFFF#000000##FFFFFF
##7E52EF1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F4
Deuteranopia (green-blind)
#006EEC
Tritanopia (blue-blind)
#5A799A
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e52ef;
/* rgb */ color: rgb(126, 82, 239);
/* oklch */ color: oklch(57.4% 0.223 290.5);
Tailwind
colors: {
  custom: {
    50: '#ac85f5',
    500: '#7e52ef',
    950: '#000000',
  },
}
SCSS
$custom: #7e52ef;
$custom-light: #ac85f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52ef",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 239
  },
  "hsl": {
    "h": 256.815,
    "s": 83.069,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57415,
    "c": 0.22291,
    "h": 290.5
  },
  "luminance": 0.16702
}

Semantic roles & 50–950 ramp

primary
#7E52EF
secondary
#DBEBB2
accent
#DF06A3
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E52EF

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

Preview Lab → · Contrast checker → · Palette generator →

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