#7C52CE#7C52CE

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

Color values

HEX#7C52CE
RGBrgb(124, 82, 206)
HSLhsl(260, 56%, 56%)
HSVhsv(260, 60%, 81%)
CMYKcmyk(39.8%, 60.2%, 0%, 19.2%)
CIE-LABlab(45.33, 44.82, -58.28)
CIE-LCHlch(45.33, 73.52, 307.56°)
OKLaboklab(54.77% 0.0784 -0.1659)
OKLCHoklch(54.77% 0.183 295.3)
XYZxyz(22.4671, 14.7754, 60.0488)
Luminance0.1478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52CE #A4CE52
analogous
#5266CE #7C52CE #BA52CE
triadic
#7C52CE #CE7C52 #52CE7C
tetradic
#7C52CE #CE5266 #A4CE52 #52CEBA
square
#7C52CE #CE5266 #A4CE52 #52CEBA
split-complementary
#7C52CE #CEBA52 #66CE52
monochromatic
#442581 #5D32B1 #7C52CE #A082DC #C4B1E9

Accessibility & contrast

On white

5.31
#7C52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C52CE
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52CE#FFFFFF#000000##FFFFFF
##7C52CE1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#1269CB
Tritanopia (blue-blind)
#676D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c52ce;
/* rgb */ color: rgb(124, 82, 206);
/* oklch */ color: oklch(54.8% 0.183 295.3);
Tailwind
colors: {
  custom: {
    50: '#a784de',
    500: '#7c52ce',
    950: '#000000',
  },
}
SCSS
$custom: #7c52ce;
$custom-light: #a784de;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52ce",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 260.323,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54774,
    "c": 0.18349,
    "h": 295.3
  },
  "luminance": 0.14776
}

Semantic roles & 50–950 ramp

primary
#7C52CE
secondary
#C6D7A4
accent
#DF49AC
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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