#7E52CF#7E52CF

#7E52CF is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.0% C 0.185 H 296.0°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#7E52CF
RGBrgb(126, 82, 207)
HSLhsl(261, 57%, 57%)
HSVhsv(261, 60%, 81%)
CMYKcmyk(39.1%, 60.4%, 0%, 18.8%)
CIE-LABlab(45.60, 45.52, -58.40)
CIE-LCHlch(45.60, 74.05, 307.94°)
OKLaboklab(55.04% 0.081 -0.1662)
OKLCHoklch(55.04% 0.185 296)
XYZxyz(22.8810, 14.9748, 60.7043)
Luminance0.1497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52CF #A3CF52
analogous
#5265CF #7E52CF #BD52CF
triadic
#7E52CF #CF7E52 #52CF7E
tetradic
#7E52CF #CF5265 #A3CF52 #52CFBD
square
#7E52CF #CF5265 #A3CF52 #52CFBD
split-complementary
#7E52CF #CFBD52 #65CF52
monochromatic
#452482 #5F31B2 #7E52CF #A282DC #C5B2EA

Accessibility & contrast

On white

5.26
#7E52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#7E52CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52CF
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52CF#FFFFFF#000000##FFFFFF
##7E52CF1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD3
Deuteranopia (green-blind)
#146ACC
Tritanopia (blue-blind)
#6A6D89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e52cf;
/* rgb */ color: rgb(126, 82, 207);
/* oklch */ color: oklch(55.0% 0.185 296.0);
Tailwind
colors: {
  custom: {
    50: '#a984de',
    500: '#7e52cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e52cf;
$custom-light: #a984de;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52cf",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 261.12,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55044,
    "c": 0.18489,
    "h": 296
  },
  "luminance": 0.14975
}

Semantic roles & 50–950 ramp

primary
#7E52CF
secondary
#C6D8A5
accent
#E048AA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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