#7D52D8#7D52D8

#7D52D8 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.6% C 0.196 H 293.8°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#7D52D8
RGBrgb(125, 82, 216)
HSLhsl(259, 63%, 58%)
HSVhsv(259, 62%, 85%)
CMYKcmyk(42.1%, 62%, 0%, 15.3%)
CIE-LABlab(46.11, 47.72, -62.73)
CIE-LCHlch(46.11, 78.82, 307.26°)
OKLaboklab(55.59% 0.0791 -0.179)
OKLCHoklch(55.59% 0.196 293.8)
XYZxyz(23.8661, 15.3518, 66.6582)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D52D8 #ADD852
analogous
#526AD8 #7D52D8 #C052D8
triadic
#7D52D8 #D87D52 #52D87D
tetradic
#7D52D8 #D8526A #ADD852 #52D8C0
square
#7D52D8 #D8526A #ADD852 #52D8C0
split-complementary
#7D52D8 #D8C052 #6AD852
monochromatic
#44208F #5C2CC1 #7D52D8 #A384E3 #C8B6EF

Accessibility & contrast

On white

5.16
#7D52D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7D52D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D52D8
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D52D8#FFFFFF#000000##FFFFFF
##7D52D81.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDC
Deuteranopia (green-blind)
#006BD5
Tritanopia (blue-blind)
#64718D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d52d8;
/* rgb */ color: rgb(125, 82, 216);
/* oklch */ color: oklch(55.6% 0.196 293.8);
Tailwind
colors: {
  custom: {
    50: '#a985e5',
    500: '#7d52d8',
    950: '#000000',
  },
}
SCSS
$custom: #7d52d8;
$custom-light: #a985e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d52d8",
  "rgb": {
    "r": 125,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 259.254,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55588,
    "c": 0.19568,
    "h": 293.8
  },
  "luminance": 0.15352
}

Semantic roles & 50–950 ramp

primary
#7D52D8
secondary
#CCDDA8
accent
#E642B1
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7D52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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