#7C52CF#7C52CF

#7C52CF is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.8% C 0.185 H 295.1°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7C52CF
RGBrgb(124, 82, 207)
HSLhsl(260, 57%, 57%)
HSVhsv(260, 60%, 81%)
CMYKcmyk(40.1%, 60.4%, 0%, 18.8%)
CIE-LABlab(45.39, 45.09, -58.75)
CIE-LCHlch(45.39, 74.05, 307.51°)
OKLaboklab(54.84% 0.0783 -0.1673)
OKLCHoklch(54.84% 0.185 295.1)
XYZxyz(22.5890, 14.8242, 60.6906)
Luminance0.1482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52CF #A5CF52
analogous
#5267CF #7C52CF #BB52CF
triadic
#7C52CF #CF7C52 #52CF7C
tetradic
#7C52CF #CF5267 #A5CF52 #52CFBB
square
#7C52CF #CF5267 #A5CF52 #52CFBB
split-complementary
#7C52CF #CFBB52 #67CF52
monochromatic
#442482 #5D31B2 #7C52CF #A082DC #C5B2EA

Accessibility & contrast

On white

5.30
#7C52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#7C52CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52CF
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52CF#FFFFFF#000000##FFFFFF
##7C52CF1.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0E6ACC
Tritanopia (blue-blind)
#676E89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c52cf;
/* rgb */ color: rgb(124, 82, 207);
/* oklch */ color: oklch(54.8% 0.185 295.1);
Tailwind
colors: {
  custom: {
    50: '#a784de',
    500: '#7c52cf',
    950: '#000000',
  },
}
SCSS
$custom: #7c52cf;
$custom-light: #a784de;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52cf",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 260.16,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54844,
    "c": 0.18471,
    "h": 295.1
  },
  "luminance": 0.14825
}

Semantic roles & 50–950 ramp

primary
#7C52CF
secondary
#C7D8A5
accent
#E048AD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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