#7C52E8#7C52E8

#7C52E8 is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.215 H 290.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7C52E8
RGBrgb(124, 82, 232)
HSLhsl(257, 77%, 62%)
HSVhsv(257, 65%, 91%)
CMYKcmyk(46.6%, 64.7%, 0%, 9%)
CIE-LABlab(47.16, 51.86, -70.11)
CIE-LCHlch(47.16, 87.21, 306.49°)
OKLaboklab(56.69% 0.0763 -0.2007)
OKLCHoklch(56.69% 0.215 290.8)
XYZxyz(25.8909, 16.1449, 78.0804)
Luminance0.1615 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52E8 #BEE852
analogous
#5273E8 #7C52E8 #C752E8
triadic
#7C52E8 #E87C52 #52E87C
tetradic
#7C52E8 #E85273 #BEE852 #52E8C7
square
#7C52E8 #E85273 #BEE852 #52E8C7
split-complementary
#7C52E8 #E8C752 #73E852
monochromatic
#4016A9 #541EDF #7C52E8 #A588EF #CEBEF6

Accessibility & contrast

On white

4.97
#7C52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7C52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52E8
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52E8#FFFFFF#000000##FFFFFF
##7C52E81.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006DE5
Tritanopia (blue-blind)
#5A7696
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c52e8;
/* rgb */ color: rgb(124, 82, 232);
/* oklch */ color: oklch(56.7% 0.215 290.8);
Tailwind
colors: {
  custom: {
    50: '#aa85f0',
    500: '#7c52e8',
    950: '#000000',
  },
}
SCSS
$custom: #7c52e8;
$custom-light: #aa85f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52e8",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 256.8,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56689,
    "c": 0.21473,
    "h": 290.8
  },
  "luminance": 0.16146
}

Semantic roles & 50–950 ramp

primary
#7C52E8
secondary
#D7E7AF
accent
#D90DA0
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7C52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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