#7E52C8#7E52C8

#7E52C8 is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.176 H 297.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7E52C8
RGBrgb(126, 82, 200)
HSLhsl(262, 52%, 55%)
HSVhsv(262, 59%, 78%)
CMYKcmyk(37%, 59%, 0%, 21.6%)
CIE-LABlab(45.14, 43.68, -55.11)
CIE-LCHlch(45.14, 70.32, 308.40°)
OKLaboklab(54.56% 0.0812 -0.1565)
OKLCHoklch(54.56% 0.176 297.4)
XYZxyz(22.0442, 14.6400, 56.2968)
Luminance0.1464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52C8 #9CC852
analogous
#5261C8 #7E52C8 #B952C8
triadic
#7E52C8 #C87E52 #52C87E
tetradic
#7E52C8 #C85261 #9CC852 #52C8B9
square
#7E52C8 #C85261 #9CC852 #52C8B9
split-complementary
#7E52C8 #C8B952 #61C852
monochromatic
#452779 #6035A8 #7E52C8 #A180D7 #C3AFE6

Accessibility & contrast

On white

5.35
#7E52C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7E52C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52C8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52C8#FFFFFF#000000##FFFFFF
##7E52C81.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#076BCC
Deuteranopia (green-blind)
#2469C5
Tritanopia (blue-blind)
#6D6B85
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e52c8;
/* rgb */ color: rgb(126, 82, 200);
/* oklch */ color: oklch(54.6% 0.176 297.4);
Tailwind
colors: {
  custom: {
    50: '#a884d9',
    500: '#7e52c8',
    950: '#000000',
  },
}
SCSS
$custom: #7e52c8;
$custom-light: #a884d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52c8",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 200
  },
  "hsl": {
    "h": 262.373,
    "s": 51.754,
    "l": 55.294
  },
  "oklch": {
    "l": 0.54558,
    "c": 0.17636,
    "h": 297.4
  },
  "luminance": 0.1464
}

Semantic roles & 50–950 ramp

primary
#7E52C8
secondary
#C1D4A2
accent
#DB4DA6
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E52C8

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

Preview Lab → · Contrast checker → · Palette generator →

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