#7F52EC#7F52EC

#7F52EC is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.219 H 291.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7F52EC
RGBrgb(127, 82, 236)
HSLhsl(258, 80%, 62%)
HSVhsv(258, 65%, 93%)
CMYKcmyk(46.2%, 65.3%, 0%, 7.5%)
CIE-LABlab(47.75, 53.50, -71.39)
CIE-LCHlch(47.75, 89.21, 306.85°)
OKLaboklab(57.28% 0.0798 -0.2044)
OKLCHoklch(57.28% 0.219 291.3)
XYZxyz(26.9058, 16.6018, 81.1274)
Luminance0.1660 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52EC #BFEC52
analogous
#5272EC #7F52EC #CC52EC
triadic
#7F52EC #EC7F52 #52EC7F
tetradic
#7F52EC #EC5272 #BFEC52 #52ECCC
square
#7F52EC #EC5272 #BFEC52 #52ECCC
split-complementary
#7F52EC #ECCC52 #72EC52
monochromatic
#4113B0 #561BE6 #7F52EC #A889F2 #D1C0F8

Accessibility & contrast

On white

4.86
#7F52EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7F52EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52EC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52EC#FFFFFF#000000##FFFFFF
##7F52EC1.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#5D7798
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f52ec;
/* rgb */ color: rgb(127, 82, 236);
/* oklch */ color: oklch(57.3% 0.219 291.3);
Tailwind
colors: {
  custom: {
    50: '#ac85f3',
    500: '#7f52ec',
    950: '#000000',
  },
}
SCSS
$custom: #7f52ec;
$custom-light: #ac85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52ec",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 236
  },
  "hsl": {
    "h": 257.532,
    "s": 80.208,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57277,
    "c": 0.21942,
    "h": 291.3
  },
  "luminance": 0.16603
}

Semantic roles & 50–950 ramp

primary
#7F52EC
secondary
#D9E9B1
accent
#DD099F
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F52EC

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

Preview Lab → · Contrast checker → · Palette generator →

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