#7A52CC#7A52CC

#7A52CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.4% C 0.181 H 294.8°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7A52CC
RGBrgb(122, 82, 204)
HSLhsl(260, 54%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40.2%, 59.8%, 0%, 20%)
CIE-LABlab(44.99, 43.85, -57.69)
CIE-LCHlch(44.99, 72.46, 307.24°)
OKLaboklab(54.44% 0.0758 -0.1642)
OKLCHoklch(54.44% 0.181 294.8)
XYZxyz(21.9395, 14.5313, 58.7639)
Luminance0.1453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52CC #A4CC52
analogous
#5267CC #7A52CC #B752CC
triadic
#7A52CC #CC7A52 #52CC7A
tetradic
#7A52CC #CC5267 #A4CC52 #52CCB7
square
#7A52CC #CC5267 #A4CC52 #52CCB7
split-complementary
#7A52CC #CCB752 #67CC52
monochromatic
#42257E #5B33AE #7A52CC #9E81DA #C3B1E8

Accessibility & contrast

On white

5.38
#7A52CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#7A52CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52CC
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52CC#FFFFFF#000000##FFFFFF
##7A52CC1.005.383.915.38
#FFFFFF5.381.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#1369C9
Tritanopia (blue-blind)
#656D87
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a52cc;
/* rgb */ color: rgb(122, 82, 204);
/* oklch */ color: oklch(54.4% 0.181 294.8);
Tailwind
colors: {
  custom: {
    50: '#a684dc',
    500: '#7a52cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a52cc;
$custom-light: #a684dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52cc",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 204
  },
  "hsl": {
    "h": 259.672,
    "s": 54.464,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54435,
    "c": 0.18088,
    "h": 294.8
  },
  "luminance": 0.14532
}

Semantic roles & 50–950 ramp

primary
#7A52CC
secondary
#C6D6A4
accent
#DE4AAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A52CC

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

Preview Lab → · Contrast checker → · Palette generator →

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