#7A52CF#7A52CF

#7A52CF is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.6% C 0.185 H 294.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7A52CF
RGBrgb(122, 82, 207)
HSLhsl(259, 57%, 57%)
HSVhsv(259, 60%, 81%)
CMYKcmyk(41.1%, 60.4%, 0%, 18.8%)
CIE-LABlab(45.19, 44.66, -59.09)
CIE-LCHlch(45.19, 74.06, 307.08°)
OKLaboklab(54.65% 0.0757 -0.1684)
OKLCHoklch(54.65% 0.185 294.2)
XYZxyz(22.3028, 14.6766, 60.6772)
Luminance0.1468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52CF #A7CF52
analogous
#5269CF #7A52CF #B952CF
triadic
#7A52CF #CF7A52 #52CF7A
tetradic
#7A52CF #CF5269 #A7CF52 #52CFB9
square
#7A52CF #CF5269 #A7CF52 #52CFB9
split-complementary
#7A52CF #CFB952 #69CF52
monochromatic
#422482 #5B31B2 #7A52CF #9F82DC #C4B2EA

Accessibility & contrast

On white

5.34
#7A52CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#7A52CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52CF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52CF#FFFFFF#000000##FFFFFF
##7A52CF1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD3
Deuteranopia (green-blind)
#0669CC
Tritanopia (blue-blind)
#646E89
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7a52cf;
/* rgb */ color: rgb(122, 82, 207);
/* oklch */ color: oklch(54.6% 0.185 294.2);
Tailwind
colors: {
  custom: {
    50: '#a684de',
    500: '#7a52cf',
    950: '#000000',
  },
}
SCSS
$custom: #7a52cf;
$custom-light: #a684de;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52cf",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 207
  },
  "hsl": {
    "h": 259.2,
    "s": 56.561,
    "l": 56.667
  },
  "oklch": {
    "l": 0.54648,
    "c": 0.18458,
    "h": 294.2
  },
  "luminance": 0.14677
}

Semantic roles & 50–950 ramp

primary
#7A52CF
secondary
#C8D8A5
accent
#E048AF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A52CF

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

Preview Lab → · Contrast checker → · Palette generator →

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