#7F52DF#7F52DF

#7F52DF is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.3% C 0.204 H 293.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#7F52DF
RGBrgb(127, 82, 223)
HSLhsl(259, 69%, 60%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(43%, 63.2%, 0%, 12.5%)
CIE-LABlab(46.81, 50.00, -65.58)
CIE-LCHlch(46.81, 82.47, 307.32°)
OKLaboklab(56.3% 0.0812 -0.1873)
OKLCHoklch(56.3% 0.204 293.4)
XYZxyz(25.0854, 15.8736, 71.5400)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52DF #B2DF52
analogous
#526CDF #7F52DF #C552DF
triadic
#7F52DF #DF7F52 #52DF7F
tetradic
#7F52DF #DF526C #B2DF52 #52DFC5
square
#7F52DF #DF526C #B2DF52 #52DFC5
split-complementary
#7F52DF #DFC552 #6CDF52
monochromatic
#451D9A #5C26CE #7F52DF #A586E9 #CBB9F2

Accessibility & contrast

On white

5.03
#7F52DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7F52DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52DF
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52DF#FFFFFF#000000##FFFFFF
##7F52DF1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E3
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#647391
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f52df;
/* rgb */ color: rgb(127, 82, 223);
/* oklch */ color: oklch(56.3% 0.204 293.4);
Tailwind
colors: {
  custom: {
    50: '#ab85ea',
    500: '#7f52df',
    950: '#000000',
  },
}
SCSS
$custom: #7f52df;
$custom-light: #ab85ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52df",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 259.149,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56296,
    "c": 0.20415,
    "h": 293.4
  },
  "luminance": 0.15874
}

Semantic roles & 50–950 ramp

primary
#7F52DF
secondary
#D0E2AB
accent
#EC3CB4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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