#7C52CC#7C52CC

#7C52CC is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.181 H 295.7°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7C52CC
RGBrgb(124, 82, 204)
HSLhsl(261, 54%, 56%)
HSVhsv(261, 60%, 80%)
CMYKcmyk(39.2%, 59.8%, 0%, 20%)
CIE-LABlab(45.19, 44.29, -57.34)
CIE-LCHlch(45.19, 72.45, 307.68°)
OKLaboklab(54.63% 0.0784 -0.1632)
OKLCHoklch(54.63% 0.181 295.7)
XYZxyz(22.2257, 14.6789, 58.7773)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52CC #A2CC52
analogous
#5265CC #7C52CC #B952CC
triadic
#7C52CC #CC7C52 #52CC7C
tetradic
#7C52CC #CC5265 #A2CC52 #52CCB9
square
#7C52CC #CC5265 #A2CC52 #52CCB9
split-complementary
#7C52CC #CCB952 #65CC52
monochromatic
#44257E #5D33AE #7C52CC #A081DA #C4B1E8

Accessibility & contrast

On white

5.34
#7C52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7C52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52CC
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52CC#FFFFFF#000000##FFFFFF
##7C52CC1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1869C9
Tritanopia (blue-blind)
#686D87
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c52cc;
/* rgb */ color: rgb(124, 82, 204);
/* oklch */ color: oklch(54.6% 0.181 295.7);
Tailwind
colors: {
  custom: {
    50: '#a784dc',
    500: '#7c52cc',
    950: '#000000',
  },
}
SCSS
$custom: #7c52cc;
$custom-light: #a784dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52cc",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 260.656,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54634,
    "c": 0.18104,
    "h": 295.7
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#7C52CC
secondary
#C5D6A4
accent
#DE4AAB
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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