#7A52E8#7A52E8

#7A52E8 is a mid, highly saturated violet. Relative luminance 0.160; OKLCH L 56.5% C 0.215 H 290.0°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7A52E8
RGBrgb(122, 82, 232)
HSLhsl(256, 77%, 62%)
HSVhsv(256, 65%, 91%)
CMYKcmyk(47.4%, 64.7%, 0%, 9%)
CIE-LABlab(46.97, 51.49, -70.43)
CIE-LCHlch(46.97, 87.25, 306.17°)
OKLaboklab(56.5% 0.0736 -0.2017)
OKLCHoklch(56.5% 0.215 290)
XYZxyz(25.6047, 15.9974, 78.0670)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52E8 #C0E852
analogous
#5275E8 #7A52E8 #C552E8
triadic
#7A52E8 #E87A52 #52E87A
tetradic
#7A52E8 #E85275 #C0E852 #52E8C5
square
#7A52E8 #E85275 #C0E852 #52E8C5
split-complementary
#7A52E8 #E8C552 #75E852
monochromatic
#3E16A9 #511EDF #7A52E8 #A488EF #CDBEF6

Accessibility & contrast

On white

5.00
#7A52E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7A52E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52E8
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52E8#FFFFFF#000000##FFFFFF
##7A52E81.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#006CE5
Tritanopia (blue-blind)
#567696
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a52e8;
/* rgb */ color: rgb(122, 82, 232);
/* oklch */ color: oklch(56.5% 0.215 290.0);
Tailwind
colors: {
  custom: {
    50: '#a985f0',
    500: '#7a52e8',
    950: '#000000',
  },
}
SCSS
$custom: #7a52e8;
$custom-light: #a985f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52e8",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 232
  },
  "hsl": {
    "h": 256,
    "s": 76.531,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.21474,
    "h": 290
  },
  "luminance": 0.15998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A52E8

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

Preview Lab → · Contrast checker → · Palette generator →

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