#7D52E1#7D52E1

#7D52E1 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.3% C 0.206 H 292.3°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7D52E1
RGBrgb(125, 82, 225)
HSLhsl(258, 70%, 60%)
HSVhsv(258, 64%, 88%)
CMYKcmyk(44.4%, 63.6%, 0%, 11.8%)
CIE-LABlab(46.75, 50.15, -66.82)
CIE-LCHlch(46.75, 83.54, 306.89°)
OKLaboklab(56.25% 0.0784 -0.191)
OKLCHoklch(56.25% 0.206 292.3)
XYZxyz(25.0616, 15.8300, 72.9546)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52E1 #B6E152
analogous
#526EE1 #7D52E1 #C452E1
triadic
#7D52E1 #E17D52 #52E17D
tetradic
#7D52E1 #E1526E #B6E152 #52E1C4
square
#7D52E1 #E1526E #B6E152 #52E1C4
split-complementary
#7D52E1 #E1C452 #6EE152
monochromatic
#421B9D #5824D1 #7D52E1 #A486EA #CBBAF3

Accessibility & contrast

On white

5.04
#7D52E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7D52E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52E1
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52E1#FFFFFF#000000##FFFFFF
##7D52E11.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E5
Deuteranopia (green-blind)
#006CDE
Tritanopia (blue-blind)
#607492
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d52e1;
/* rgb */ color: rgb(125, 82, 225);
/* oklch */ color: oklch(56.3% 0.206 292.3);
Tailwind
colors: {
  custom: {
    50: '#aa85eb',
    500: '#7d52e1',
    950: '#000000',
  },
}
SCSS
$custom: #7d52e1;
$custom-light: #aa85eb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52e1",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 225
  },
  "hsl": {
    "h": 258.042,
    "s": 70.443,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56253,
    "c": 0.20645,
    "h": 292.3
  },
  "luminance": 0.15831
}

Semantic roles & 50–950 ramp

primary
#7D52E1
secondary
#D2E3AC
accent
#D21399
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D52E1

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

Preview Lab → · Contrast checker → · Palette generator →

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