#7F52D6#7F52D6

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

Color values

HEX#7F52D6
RGBrgb(127, 82, 214)
HSLhsl(260, 62%, 58%)
HSVhsv(260, 62%, 84%)
CMYKcmyk(40.7%, 61.7%, 0%, 16.1%)
CIE-LABlab(46.18, 47.60, -61.47)
CIE-LCHlch(46.18, 77.74, 307.75°)
OKLaboklab(55.64% 0.0819 -0.1752)
OKLCHoklch(55.64% 0.193 295.1)
XYZxyz(23.9041, 15.4011, 65.3186)
Luminance0.1540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52D6 #A9D652
analogous
#5267D6 #7F52D6 #C152D6
triadic
#7F52D6 #D67F52 #52D67F
tetradic
#7F52D6 #D65267 #A9D652 #52D6C1
square
#7F52D6 #D65267 #A9D652 #52D6C1
split-complementary
#7F52D6 #D6C152 #67D652
monochromatic
#46218C #5E2DBE #7F52D6 #A483E2 #C8B5ED

Accessibility & contrast

On white

5.15
#7F52D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7F52D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52D6
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52D6#FFFFFF#000000##FFFFFF
##7F52D61.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDA
Deuteranopia (green-blind)
#006BD3
Tritanopia (blue-blind)
#68708C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f52d6;
/* rgb */ color: rgb(127, 82, 214);
/* oklch */ color: oklch(55.6% 0.193 295.1);
Tailwind
colors: {
  custom: {
    50: '#aa85e3',
    500: '#7f52d6',
    950: '#000000',
  },
}
SCSS
$custom: #7f52d6;
$custom-light: #aa85e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52d6",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 214
  },
  "hsl": {
    "h": 260.455,
    "s": 61.682,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5564,
    "c": 0.19341,
    "h": 295.1
  },
  "luminance": 0.15402
}

Semantic roles & 50–950 ramp

primary
#7F52D6
secondary
#CADCA8
accent
#E543AE
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7F52D6

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

Preview Lab → · Contrast checker → · Palette generator →

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