#7C52DB#7C52DB

#7C52DB is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.7% C 0.199 H 292.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7C52DB
RGBrgb(124, 82, 219)
HSLhsl(258, 66%, 59%)
HSVhsv(258, 63%, 86%)
CMYKcmyk(43.4%, 62.6%, 0%, 14.1%)
CIE-LABlab(46.22, 48.32, -64.27)
CIE-LCHlch(46.22, 80.41, 306.94°)
OKLaboklab(55.71% 0.0775 -0.1835)
OKLCHoklch(55.71% 0.199 292.9)
XYZxyz(24.1122, 15.4334, 68.7126)
Luminance0.1543 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52DB #B1DB52
analogous
#526DDB #7C52DB #C152DB
triadic
#7C52DB #DB7C52 #52DB7C
tetradic
#7C52DB #DB526D #B1DB52 #52DBC1
square
#7C52DB #DB526D #B1DB52 #52DBC1
split-complementary
#7C52DB #DBC152 #6DDB52
monochromatic
#431F94 #5929C6 #7C52DB #A285E6 #C9B7F0

Accessibility & contrast

On white

5.14
#7C52DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7C52DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52DB
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52DB#FFFFFF#000000##FFFFFF
##7C52DB1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#61728F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c52db;
/* rgb */ color: rgb(124, 82, 219);
/* oklch */ color: oklch(55.7% 0.199 292.9);
Tailwind
colors: {
  custom: {
    50: '#a885e7',
    500: '#7c52db',
    950: '#000000',
  },
}
SCSS
$custom: #7c52db;
$custom-light: #a885e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52db",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 219
  },
  "hsl": {
    "h": 258.394,
    "s": 65.55,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.19925,
    "h": 292.9
  },
  "luminance": 0.15434
}

Semantic roles & 50–950 ramp

primary
#7C52DB
secondary
#CFDFAA
accent
#E93FB5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7C52DB

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

Preview Lab → · Contrast checker → · Palette generator →

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