#7F52D7#7F52D7

#7F52D7 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.7% C 0.195 H 294.9°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7F52D7
RGBrgb(127, 82, 215)
HSLhsl(260, 62%, 58%)
HSVhsv(260, 62%, 84%)
CMYKcmyk(40.9%, 61.9%, 0%, 15.7%)
CIE-LABlab(46.25, 47.86, -61.93)
CIE-LCHlch(46.25, 78.27, 307.70°)
OKLaboklab(55.71% 0.0818 -0.1766)
OKLCHoklch(55.71% 0.195 294.9)
XYZxyz(24.0322, 15.4524, 65.9932)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52D7 #AAD752
analogous
#5267D7 #7F52D7 #C152D7
triadic
#7F52D7 #D77F52 #52D77F
tetradic
#7F52D7 #D75267 #AAD752 #52D7C1
square
#7F52D7 #D75267 #AAD752 #52D7C1
split-complementary
#7F52D7 #D7C152 #67D752
monochromatic
#46218E #5E2CC0 #7F52D7 #A484E2 #C9B5EE

Accessibility & contrast

On white

5.13
#7F52D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7F52D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52D7
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52D7#FFFFFF#000000##FFFFFF
##7F52D71.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDB
Deuteranopia (green-blind)
#006BD4
Tritanopia (blue-blind)
#68708D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f52d7;
/* rgb */ color: rgb(127, 82, 215);
/* oklch */ color: oklch(55.7% 0.195 294.9);
Tailwind
colors: {
  custom: {
    50: '#aa85e4',
    500: '#7f52d7',
    950: '#000000',
  },
}
SCSS
$custom: #7f52d7;
$custom-light: #aa85e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52d7",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 215
  },
  "hsl": {
    "h": 260.301,
    "s": 62.441,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55712,
    "c": 0.19461,
    "h": 294.9
  },
  "luminance": 0.15453
}

Semantic roles & 50–950 ramp

primary
#7F52D7
secondary
#CBDDA8
accent
#E642AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52D7

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

Preview Lab → · Contrast checker → · Palette generator →

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