#7D52E4#7D52E4

#7D52E4 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.210 H 291.8°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7D52E4
RGBrgb(125, 82, 228)
HSLhsl(258, 73%, 61%)
HSVhsv(258, 64%, 89%)
CMYKcmyk(45.2%, 64%, 0%, 10.6%)
CIE-LABlab(46.97, 50.96, -68.17)
CIE-LCHlch(46.97, 85.11, 306.78°)
OKLaboklab(56.48% 0.0781 -0.195)
OKLCHoklch(56.48% 0.21 291.8)
XYZxyz(25.4744, 15.9951, 75.1289)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52E4 #B9E452
analogous
#5270E4 #7D52E4 #C652E4
triadic
#7D52E4 #E47D52 #52E47D
tetradic
#7D52E4 #E45270 #B9E452 #52E4C6
square
#7D52E4 #E45270 #B9E452 #52E4C6
split-complementary
#7D52E4 #E4C652 #70E452
monochromatic
#4219A2 #5722D7 #7D52E4 #A587EC #CDBCF5

Accessibility & contrast

On white

5.00
#7D52E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7D52E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52E4
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52E4#FFFFFF#000000##FFFFFF
##7D52E41.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#5E7594
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7d52e4;
/* rgb */ color: rgb(125, 82, 228);
/* oklch */ color: oklch(56.5% 0.210 291.8);
Tailwind
colors: {
  custom: {
    50: '#aa85ed',
    500: '#7d52e4',
    950: '#000000',
  },
}
SCSS
$custom: #7d52e4;
$custom-light: #aa85ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52e4",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 228
  },
  "hsl": {
    "h": 257.671,
    "s": 73,
    "l": 60.784
  },
  "oklch": {
    "l": 0.56478,
    "c": 0.21,
    "h": 291.8
  },
  "luminance": 0.15996
}

Semantic roles & 50–950 ramp

primary
#7D52E4
secondary
#D4E5AD
accent
#D5109B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D52E4

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

Preview Lab → · Contrast checker → · Palette generator →

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