#7A52CE#7A52CE

#7A52CE is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.6% C 0.183 H 294.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7A52CE
RGBrgb(122, 82, 206)
HSLhsl(259, 56%, 56%)
HSVhsv(259, 60%, 81%)
CMYKcmyk(40.8%, 60.2%, 0%, 19.2%)
CIE-LABlab(45.12, 44.38, -58.62)
CIE-LCHlch(45.12, 73.53, 307.13°)
OKLaboklab(54.58% 0.0757 -0.167)
OKLCHoklch(54.58% 0.183 294.4)
XYZxyz(22.1809, 14.6279, 60.0354)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52CE #A6CE52
analogous
#5268CE #7A52CE #B852CE
triadic
#7A52CE #CE7A52 #52CE7A
tetradic
#7A52CE #CE5268 #A6CE52 #52CEB8
square
#7A52CE #CE5268 #A6CE52 #52CEB8
split-complementary
#7A52CE #CEB852 #68CE52
monochromatic
#422581 #5B32B1 #7A52CE #9F82DC #C3B1E9

Accessibility & contrast

On white

5.35
#7A52CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7A52CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52CE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52CE#FFFFFF#000000##FFFFFF
##7A52CE1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD2
Deuteranopia (green-blind)
#0B69CB
Tritanopia (blue-blind)
#646D88
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7a52ce;
/* rgb */ color: rgb(122, 82, 206);
/* oklch */ color: oklch(54.6% 0.183 294.4);
Tailwind
colors: {
  custom: {
    50: '#a684de',
    500: '#7a52ce',
    950: '#000000',
  },
}
SCSS
$custom: #7a52ce;
$custom-light: #a684de;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52ce",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 206
  },
  "hsl": {
    "h": 259.355,
    "s": 55.856,
    "l": 56.471
  },
  "oklch": {
    "l": 0.54577,
    "c": 0.18335,
    "h": 294.4
  },
  "luminance": 0.14628
}

Semantic roles & 50–950 ramp

primary
#7A52CE
secondary
#C7D7A4
accent
#DF49AF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A52CE

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

Preview Lab → · Contrast checker → · Palette generator →

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