#7C52E2#7C52E2

#7C52E2 is a mid, highly saturated violet. Relative luminance 0.158; OKLCH L 56.2% C 0.208 H 291.7°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7C52E2
RGBrgb(124, 82, 226)
HSLhsl(258, 71%, 60%)
HSVhsv(258, 64%, 89%)
CMYKcmyk(45.1%, 63.7%, 0%, 11.4%)
CIE-LABlab(46.72, 50.22, -67.43)
CIE-LCHlch(46.72, 84.08, 306.68°)
OKLaboklab(56.23% 0.0769 -0.1928)
OKLCHoklch(56.23% 0.208 291.7)
XYZxyz(25.0531, 15.8098, 73.6683)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C52E2 #B8E252
analogous
#5270E2 #7C52E2 #C452E2
triadic
#7C52E2 #E27C52 #52E27C
tetradic
#7C52E2 #E25270 #B8E252 #52E2C4
square
#7C52E2 #E25270 #B8E252 #52E2C4
split-complementary
#7C52E2 #E2C452 #70E252
monochromatic
#411B9F #5723D3 #7C52E2 #A486EB #CBBBF4

Accessibility & contrast

On white

5.05
#7C52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7C52E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C52E2
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C52E2#FFFFFF#000000##FFFFFF
##7C52E21.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006CDF
Tritanopia (blue-blind)
#5D7493
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7c52e2;
/* rgb */ color: rgb(124, 82, 226);
/* oklch */ color: oklch(56.2% 0.208 291.7);
Tailwind
colors: {
  custom: {
    50: '#a985ec',
    500: '#7c52e2',
    950: '#000000',
  },
}
SCSS
$custom: #7c52e2;
$custom-light: #a985ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7c52e2",
  "rgb": {
    "r": 124,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 257.5,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56233,
    "c": 0.20761,
    "h": 291.7
  },
  "luminance": 0.15811
}

Semantic roles & 50–950 ramp

primary
#7C52E2
secondary
#D3E3AC
accent
#D3129B
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7C52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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