#7A52CD#7A52CD

#7A52CD is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.5% C 0.182 H 294.6°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7A52CD
RGBrgb(122, 82, 205)
HSLhsl(260, 55%, 56%)
HSVhsv(260, 60%, 80%)
CMYKcmyk(40.5%, 60%, 0%, 19.6%)
CIE-LABlab(45.05, 44.12, -58.15)
CIE-LCHlch(45.05, 72.99, 307.18°)
OKLaboklab(54.51% 0.0758 -0.1656)
OKLCHoklch(54.51% 0.182 294.6)
XYZxyz(22.0599, 14.5794, 59.3976)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52CD #A5CD52
analogous
#5268CD #7A52CD #B852CD
triadic
#7A52CD #CD7A52 #52CD7A
tetradic
#7A52CD #CD5268 #A5CD52 #52CDB8
square
#7A52CD #CD5268 #A5CD52 #52CDB8
split-complementary
#7A52CD #CDB852 #68CD52
monochromatic
#422580 #5B33AF #7A52CD #9F81DB #C3B1E8

Accessibility & contrast

On white

5.36
#7A52CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#7A52CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52CD
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52CD#FFFFFF#000000##FFFFFF
##7A52CD1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a52cd;
/* rgb */ color: rgb(122, 82, 205);
/* oklch */ color: oklch(54.5% 0.182 294.6);
Tailwind
colors: {
  custom: {
    50: '#a684dd',
    500: '#7a52cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a52cd;
$custom-light: #a684dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52cd",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 205
  },
  "hsl": {
    "h": 259.512,
    "s": 55.157,
    "l": 56.275
  },
  "oklch": {
    "l": 0.54506,
    "c": 0.18212,
    "h": 294.6
  },
  "luminance": 0.1458
}

Semantic roles & 50–950 ramp

primary
#7A52CD
secondary
#C6D7A4
accent
#DE49AE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A52CD

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

Preview Lab → · Contrast checker → · Palette generator →

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