#7C52CA#7C52CA

#7C52CA is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.179 H 296.1°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7C52CA
RGBrgb(124, 82, 202)
HSLhsl(261, 53%, 56%)
HSVhsv(261, 59%, 79%)
CMYKcmyk(38.6%, 59.4%, 0%, 20.8%)
CIE-LABlab(45.06, 43.75, -56.41)
CIE-LCHlch(45.06, 71.39, 307.80°)
OKLaboklab(54.49% 0.0785 -0.1604)
OKLCHoklch(54.49% 0.179 296.1)
XYZxyz(21.9874, 14.5835, 57.5221)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52CA #A0CA52
analogous
#5264CA #7C52CA #B852CA
triadic
#7C52CA #CA7C52 #52CA7C
tetradic
#7C52CA #CA5264 #A0CA52 #52CAB8
square
#7C52CA #CA5264 #A0CA52 #52CAB8
split-complementary
#7C52CA #CAB852 #64CA52
monochromatic
#44267C #5E34AB #7C52CA #9F81D8 #C3B0E7

Accessibility & contrast

On white

5.36
#7C52CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7C52CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52CA
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52CA#FFFFFF#000000##FFFFFF
##7C52CA1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCE
Deuteranopia (green-blind)
#1D69C7
Tritanopia (blue-blind)
#696C86
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7c52ca;
/* rgb */ color: rgb(124, 82, 202);
/* oklch */ color: oklch(54.5% 0.179 296.1);
Tailwind
colors: {
  custom: {
    50: '#a784db',
    500: '#7c52ca',
    950: '#000000',
  },
}
SCSS
$custom: #7c52ca;
$custom-light: #a784db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52ca",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 202
  },
  "hsl": {
    "h": 261,
    "s": 53.097,
    "l": 55.686
  },
  "oklch": {
    "l": 0.54494,
    "c": 0.1786,
    "h": 296.1
  },
  "luminance": 0.14584
}

Semantic roles & 50–950 ramp

primary
#7C52CA
secondary
#C3D5A3
accent
#DD4BAA
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C52CA

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

Preview Lab → · Contrast checker → · Palette generator →

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