#7F52D5#7F52D5

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

Color values

HEX#7F52D5
RGBrgb(127, 82, 213)
HSLhsl(261, 61%, 58%)
HSVhsv(261, 62%, 84%)
CMYKcmyk(40.4%, 61.5%, 0%, 16.5%)
CIE-LABlab(46.11, 47.33, -61.01)
CIE-LCHlch(46.11, 77.22, 307.80°)
OKLaboklab(55.57% 0.082 -0.1739)
OKLCHoklch(55.57% 0.192 295.2)
XYZxyz(23.7768, 15.3502, 64.6480)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52D5 #A8D552
analogous
#5266D5 #7F52D5 #C152D5
triadic
#7F52D5 #D57F52 #52D57F
tetradic
#7F52D5 #D55266 #A8D552 #52D5C1
square
#7F52D5 #D55266 #A8D552 #52D5C1
split-complementary
#7F52D5 #D5C152 #66D552
monochromatic
#46228B #5F2EBC #7F52D5 #A383E1 #C8B4ED

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F52D5#FFFFFF#000000##FFFFFF
##7F52D51.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)
#006ED9
Deuteranopia (green-blind)
#006BD2
Tritanopia (blue-blind)
#696F8C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7f52d5;
/* rgb */ color: rgb(127, 82, 213);
/* oklch */ color: oklch(55.6% 0.192 295.2);
Tailwind
colors: {
  custom: {
    50: '#aa85e3',
    500: '#7f52d5',
    950: '#000000',
  },
}
SCSS
$custom: #7f52d5;
$custom-light: #aa85e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52d5",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 213
  },
  "hsl": {
    "h": 260.611,
    "s": 60.93,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55569,
    "c": 0.19221,
    "h": 295.2
  },
  "luminance": 0.15351
}

Semantic roles & 50–950 ramp

primary
#7F52D5
secondary
#CADCA7
accent
#E444AD
background
#FAF8FE
surface
#F5EFFC
border
#CFCAD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7F52D5

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

Preview Lab → · Contrast checker → · Palette generator →

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