#7D52E7#7D52E7

#7D52E7 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.7% C 0.214 H 291.3°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7D52E7
RGBrgb(125, 82, 231)
HSLhsl(257, 76%, 61%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(45.9%, 64.5%, 0%, 9.4%)
CIE-LABlab(47.19, 51.77, -69.50)
CIE-LCHlch(47.19, 86.67, 306.68°)
OKLaboklab(56.71% 0.0777 -0.1989)
OKLCHoklch(56.71% 0.214 291.3)
XYZxyz(25.8945, 16.1632, 77.3413)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52E7 #BCE752
analogous
#5272E7 #7D52E7 #C752E7
triadic
#7D52E7 #E77D52 #52E77D
tetradic
#7D52E7 #E75272 #BCE752 #52E7C7
square
#7D52E7 #E75272 #BCE752 #52E7C7
split-complementary
#7D52E7 #E7C752 #72E752
monochromatic
#4117A7 #561FDD #7D52E7 #A588EE #CEBDF6

Accessibility & contrast

On white

4.96
#7D52E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7D52E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52E7
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52E7#FFFFFF#000000##FFFFFF
##7D52E71.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072EC
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#5C7695
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d52e7;
/* rgb */ color: rgb(125, 82, 231);
/* oklch */ color: oklch(56.7% 0.214 291.3);
Tailwind
colors: {
  custom: {
    50: '#aa85f0',
    500: '#7d52e7',
    950: '#000000',
  },
}
SCSS
$custom: #7d52e7;
$custom-light: #aa85f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52e7",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 231
  },
  "hsl": {
    "h": 257.315,
    "s": 75.635,
    "l": 61.373
  },
  "oklch": {
    "l": 0.56706,
    "c": 0.21355,
    "h": 291.3
  },
  "luminance": 0.16164
}

Semantic roles & 50–950 ramp

primary
#7D52E7
secondary
#D6E6AF
accent
#D80E9D
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7D52E7

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

Preview Lab → · Contrast checker → · Palette generator →

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