#7A52DD#7A52DD

#7A52DD is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.7% C 0.202 H 291.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7A52DD
RGBrgb(122, 82, 221)
HSLhsl(257, 67%, 59%)
HSVhsv(257, 63%, 87%)
CMYKcmyk(44.8%, 62.9%, 0%, 13.3%)
CIE-LABlab(46.17, 48.47, -65.51)
CIE-LCHlch(46.17, 81.49, 306.50°)
OKLaboklab(55.67% 0.0747 -0.1872)
OKLCHoklch(55.67% 0.202 291.8)
XYZxyz(24.0909, 15.3918, 70.0942)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52DD #B5DD52
analogous
#5270DD #7A52DD #C052DD
triadic
#7A52DD #DD7A52 #52DD7A
tetradic
#7A52DD #DD5270 #B5DD52 #52DDC0
square
#7A52DD #DD5270 #B5DD52 #52DDC0
split-complementary
#7A52DD #DDC052 #70DD52
monochromatic
#411E97 #5628CA #7A52DD #A185E7 #C9B8F1

Accessibility & contrast

On white

5.15
#7A52DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7A52DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52DD
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52DD#FFFFFF#000000##FFFFFF
##7A52DD1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#006ADA
Tritanopia (blue-blind)
#5D7390
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a52dd;
/* rgb */ color: rgb(122, 82, 221);
/* oklch */ color: oklch(55.7% 0.202 291.8);
Tailwind
colors: {
  custom: {
    50: '#a785e8',
    500: '#7a52dd',
    950: '#000000',
  },
}
SCSS
$custom: #7a52dd;
$custom-light: #a785e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52dd",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 221
  },
  "hsl": {
    "h": 257.266,
    "s": 67.15,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55669,
    "c": 0.2016,
    "h": 291.8
  },
  "luminance": 0.15393
}

Semantic roles & 50–950 ramp

primary
#7A52DD
secondary
#D1E0AA
accent
#EA3EB8
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A52DD

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

Preview Lab → · Contrast checker → · Palette generator →

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