#7F52D8#7F52D8

#7F52D8 is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.8% C 0.196 H 294.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7F52D8
RGBrgb(127, 82, 216)
HSLhsl(260, 63%, 58%)
HSVhsv(260, 62%, 85%)
CMYKcmyk(41.2%, 62%, 0%, 15.3%)
CIE-LABlab(46.32, 48.13, -62.39)
CIE-LCHlch(46.32, 78.80, 307.65°)
OKLaboklab(55.78% 0.0818 -0.1779)
OKLCHoklch(55.78% 0.196 294.7)
XYZxyz(24.1611, 15.5039, 66.6720)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52D8 #ABD852
analogous
#5268D8 #7F52D8 #C252D8
triadic
#7F52D8 #D87F52 #52D87F
tetradic
#7F52D8 #D85268 #ABD852 #52D8C2
square
#7F52D8 #D85268 #ABD852 #52D8C2
split-complementary
#7F52D8 #D8C252 #68D852
monochromatic
#46208F #5E2CC1 #7F52D8 #A484E3 #C9B6EF

Accessibility & contrast

On white

5.12
#7F52D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7F52D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52D8
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52D8#FFFFFF#000000##FFFFFF
##7F52D81.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f52d8;
/* rgb */ color: rgb(127, 82, 216);
/* oklch */ color: oklch(55.8% 0.196 294.7);
Tailwind
colors: {
  custom: {
    50: '#aa85e5',
    500: '#7f52d8',
    950: '#000000',
  },
}
SCSS
$custom: #7f52d8;
$custom-light: #aa85e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52d8",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 216
  },
  "hsl": {
    "h": 260.149,
    "s": 63.208,
    "l": 58.431
  },
  "oklch": {
    "l": 0.55784,
    "c": 0.19581,
    "h": 294.7
  },
  "luminance": 0.15504
}

Semantic roles & 50–950 ramp

primary
#7F52D8
secondary
#CCDDA8
accent
#E642AF
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52D8

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

Preview Lab → · Contrast checker → · Palette generator →

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