#7E52D0#7E52D0

#7E52D0 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 55.1% C 0.186 H 295.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7E52D0
RGBrgb(126, 82, 208)
HSLhsl(261, 57%, 57%)
HSVhsv(261, 61%, 82%)
CMYKcmyk(39.4%, 60.6%, 0%, 18.4%)
CIE-LABlab(45.67, 45.79, -58.87)
CIE-LCHlch(45.67, 74.58, 307.88°)
OKLaboklab(55.11% 0.0809 -0.1676)
OKLCHoklch(55.11% 0.186 295.8)
XYZxyz(23.0037, 15.0238, 61.3502)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E52D0 #A4D052
analogous
#5265D0 #7E52D0 #BD52D0
triadic
#7E52D0 #D07E52 #52D07E
tetradic
#7E52D0 #D05265 #A4D052 #52D0BD
square
#7E52D0 #D05265 #A4D052 #52D0BD
split-complementary
#7E52D0 #D0BD52 #65D052
monochromatic
#452484 #5F31B4 #7E52D0 #A282DD #C6B2EA

Accessibility & contrast

On white

5.24
#7E52D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#7E52D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E52D0
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E52D0#FFFFFF#000000##FFFFFF
##7E52D01.005.244.005.24
#FFFFFF5.241.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD4
Deuteranopia (green-blind)
#116ACD
Tritanopia (blue-blind)
#6A6E89
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e52d0;
/* rgb */ color: rgb(126, 82, 208);
/* oklch */ color: oklch(55.1% 0.186 295.8);
Tailwind
colors: {
  custom: {
    50: '#a984df',
    500: '#7e52d0',
    950: '#000000',
  },
}
SCSS
$custom: #7e52d0;
$custom-light: #a984df;
$custom-dark: #000000;
JSON
{
  "hex": "#7e52d0",
  "rgb": {
    "r": 126,
    "g": 82,
    "b": 208
  },
  "hsl": {
    "h": 260.952,
    "s": 57.273,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55114,
    "c": 0.1861,
    "h": 295.8
  },
  "luminance": 0.15024
}

Semantic roles & 50–950 ramp

primary
#7E52D0
secondary
#C7D9A5
accent
#E147AB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E52D0

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

Preview Lab → · Contrast checker → · Palette generator →

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