#7E52FF#7E52FF

#7E52FF is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.7% C 0.241 H 288.3°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E52FF
RGBrgb(126, 82, 255)
HSLhsl(255, 100%, 66%)
HSVhsv(255, 68%, 100%)
CMYKcmyk(50.6%, 67.8%, 0%, 0%)
CIE-LABlab(49.12, 58.49, -79.80)
CIE-LCHlch(49.12, 98.94, 306.24°)
OKLaboklab(58.68% 0.0758 -0.2291)
OKLCHoklch(58.68% 0.241 288.3)
XYZxyz(29.6662, 17.6888, 96.4395)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52FF #D3FF52
analogous
#527CFF #7E52FF #D452FF
triadic
#7E52FF #FF7E52 #52FF7E
tetradic
#7E52FF #FF527C #D3FF52 #52FFD4
square
#7E52FF #FF527C #D3FF52 #52FFD4
split-complementary
#7E52FF #FFD452 #7CFF52
monochromatic
#3700D7 #5015FF #7E52FF #AC8FFF #D9CCFF

Accessibility & contrast

On white

4.63
#7E52FF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7E52FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52FF
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52FF#FFFFFF#000000##FFFFFF
##7E52FF1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FF
Deuteranopia (green-blind)
#0070FC
Tritanopia (blue-blind)
#4E7EA2
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e52ff;
/* rgb */ color: rgb(126, 82, 255);
/* oklch */ color: oklch(58.7% 0.241 288.3);
Tailwind
colors: {
  custom: {
    50: '#ae86ff',
    500: '#7e52ff',
    950: '#000000',
  },
}
SCSS
$custom: #7e52ff;
$custom-light: #ae86ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52ff",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 255
  },
  "hsl": {
    "h": 255.26,
    "s": 100,
    "l": 66.078
  },
  "oklch": {
    "l": 0.58685,
    "c": 0.24132,
    "h": 288.3
  },
  "luminance": 0.1769
}

Semantic roles & 50–950 ramp

primary
#7E52FF
secondary
#E4F3BA
accent
#E600AB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#120B18
muted
#817C86

Preview Lab

Preview with #7E52FF

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

Preview Lab → · Contrast checker → · Palette generator →

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