#7E52F1#7E52F1

#7E52F1 is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.6% C 0.225 H 290.2°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7E52F1
RGBrgb(126, 82, 241)
HSLhsl(257, 85%, 63%)
HSVhsv(257, 66%, 95%)
CMYKcmyk(47.7%, 66%, 0%, 5.5%)
CIE-LABlab(48.03, 54.67, -73.75)
CIE-LCHlch(48.03, 91.81, 306.55°)
OKLaboklab(57.57% 0.0778 -0.2114)
OKLCHoklch(57.57% 0.225 290.2)
XYZxyz(27.4941, 16.8200, 85.0000)
Luminance0.1682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52F1 #C5F152
analogous
#5275F1 #7E52F1 #CE52F1
triadic
#7E52F1 #F17E52 #52F17E
tetradic
#7E52F1 #F15275 #C5F152 #52F1CE
square
#7E52F1 #F15275 #C5F152 #52F1CE
split-complementary
#7E52F1 #F1CE52 #75F152
monochromatic
#3E0FBA #5419EC #7E52F1 #A88BF6 #D2C3FA

Accessibility & contrast

On white

4.81
#7E52F1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7E52F1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52F1
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52F1#FFFFFF#000000##FFFFFF
##7E52F11.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F6
Deuteranopia (green-blind)
#006EEE
Tritanopia (blue-blind)
#58799B
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e52f1;
/* rgb */ color: rgb(126, 82, 241);
/* oklch */ color: oklch(57.6% 0.225 290.2);
Tailwind
colors: {
  custom: {
    50: '#ac85f7',
    500: '#7e52f1',
    950: '#000000',
  },
}
SCSS
$custom: #7e52f1;
$custom-light: #ac85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52f1",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 241
  },
  "hsl": {
    "h": 256.604,
    "s": 85.027,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57571,
    "c": 0.22524,
    "h": 290.2
  },
  "luminance": 0.16821
}

Semantic roles & 50–950 ramp

primary
#7E52F1
secondary
#DCECB3
accent
#E204A4
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E52F1

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

Preview Lab → · Contrast checker → · Palette generator →

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