#7F52DE#7F52DE

#7F52DE is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.2% C 0.203 H 293.6°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7F52DE
RGBrgb(127, 82, 222)
HSLhsl(259, 68%, 60%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(42.8%, 63.1%, 0%, 12.9%)
CIE-LABlab(46.74, 49.73, -65.13)
CIE-LCHlch(46.74, 81.94, 307.36°)
OKLaboklab(56.22% 0.0813 -0.186)
OKLCHoklch(56.22% 0.203 293.6)
XYZxyz(24.9509, 15.8199, 70.8320)
Luminance0.1582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52DE #B1DE52
analogous
#526BDE #7F52DE #C552DE
triadic
#7F52DE #DE7F52 #52DE7F
tetradic
#7F52DE #DE526B #B1DE52 #52DEC5
square
#7F52DE #DE526B #B1DE52 #52DEC5
split-complementary
#7F52DE #DEC552 #6BDE52
monochromatic
#451D99 #5C27CC #7F52DE #A585E8 #CBB9F2

Accessibility & contrast

On white

5.04
#7F52DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7F52DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52DE
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52DE#FFFFFF#000000##FFFFFF
##7F52DE1.005.044.165.04
#FFFFFF5.041.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E2
Deuteranopia (green-blind)
#006CDB
Tritanopia (blue-blind)
#657291
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f52de;
/* rgb */ color: rgb(127, 82, 222);
/* oklch */ color: oklch(56.2% 0.203 293.6);
Tailwind
colors: {
  custom: {
    50: '#ab85e9',
    500: '#7f52de',
    950: '#000000',
  },
}
SCSS
$custom: #7f52de;
$custom-light: #ab85e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52de",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 259.286,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56222,
    "c": 0.20296,
    "h": 293.6
  },
  "luminance": 0.15821
}

Semantic roles & 50–950 ramp

primary
#7F52DE
secondary
#D0E1AB
accent
#EB3DB3
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52DE

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

Preview Lab → · Contrast checker → · Palette generator →

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