#7C52E9#7C52E9

#7C52E9 is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.8% C 0.216 H 290.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#7C52E9
RGBrgb(124, 82, 233)
HSLhsl(257, 77%, 62%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(46.8%, 64.8%, 0%, 8.6%)
CIE-LABlab(47.24, 52.13, -70.56)
CIE-LCHlch(47.24, 87.73, 306.46°)
OKLaboklab(56.77% 0.0762 -0.202)
OKLCHoklch(56.77% 0.216 290.7)
XYZxyz(26.0333, 16.2019, 78.8306)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52E9 #BFE952
analogous
#5274E9 #7C52E9 #C852E9
triadic
#7C52E9 #E97C52 #52E97C
tetradic
#7C52E9 #E95274 #BFE952 #52E9C8
square
#7C52E9 #E95274 #BFE952 #52E9C8
split-complementary
#7C52E9 #E9C852 #74E952
monochromatic
#3F16AB #531DE1 #7C52E9 #A588F0 #CEBFF7

Accessibility & contrast

On white

4.95
#7C52E9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7C52E9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52E9
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52E9#FFFFFF#000000##FFFFFF
##7C52E91.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EE
Deuteranopia (green-blind)
#006DE6
Tritanopia (blue-blind)
#597796
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c52e9;
/* rgb */ color: rgb(124, 82, 233);
/* oklch */ color: oklch(56.8% 0.216 290.7);
Tailwind
colors: {
  custom: {
    50: '#aa85f1',
    500: '#7c52e9',
    950: '#000000',
  },
}
SCSS
$custom: #7c52e9;
$custom-light: #aa85f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52e9",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 233
  },
  "hsl": {
    "h": 256.689,
    "s": 77.436,
    "l": 61.765
  },
  "oklch": {
    "l": 0.56766,
    "c": 0.2159,
    "h": 290.7
  },
  "luminance": 0.16203
}

Semantic roles & 50–950 ramp

primary
#7C52E9
secondary
#D8E7AF
accent
#DA0CA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C52E9

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

Preview Lab → · Contrast checker → · Palette generator →

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