#7F52DB#7F52DB

#7F52DB is a mid, vivid violet. Relative luminance 0.157; OKLCH L 56.0% C 0.199 H 294.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7F52DB
RGBrgb(127, 82, 219)
HSLhsl(260, 66%, 59%)
HSVhsv(260, 63%, 86%)
CMYKcmyk(42%, 62.6%, 0%, 14.1%)
CIE-LABlab(46.53, 48.93, -63.76)
CIE-LCHlch(46.53, 80.37, 307.50°)
OKLaboklab(56% 0.0816 -0.1819)
OKLCHoklch(56% 0.199 294.1)
XYZxyz(24.5524, 15.6605, 68.7333)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F52DB #AEDB52
analogous
#526ADB #7F52DB #C452DB
triadic
#7F52DB #DB7F52 #52DB7F
tetradic
#7F52DB #DB526A #AEDB52 #52DBC4
square
#7F52DB #DB526A #AEDB52 #52DBC4
split-complementary
#7F52DB #DBC452 #6ADB52
monochromatic
#451F94 #5D29C6 #7F52DB #A485E6 #CAB7F0

Accessibility & contrast

On white

5.08
#7F52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7F52DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F52DB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F52DB#FFFFFF#000000##FFFFFF
##7F52DB1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070DF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#66718F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7f52db;
/* rgb */ color: rgb(127, 82, 219);
/* oklch */ color: oklch(56.0% 0.199 294.1);
Tailwind
colors: {
  custom: {
    50: '#aa85e7',
    500: '#7f52db',
    950: '#000000',
  },
}
SCSS
$custom: #7f52db;
$custom-light: #aa85e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f52db",
  "rgb": {
    "r": 127,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 259.708,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56002,
    "c": 0.19939,
    "h": 294.1
  },
  "luminance": 0.15661
}

Semantic roles & 50–950 ramp

primary
#7F52DB
secondary
#CEDFAA
accent
#E93FB1
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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