#7A52D3#7A52D3

#7A52D3 is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.9% C 0.189 H 293.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#7A52D3
RGBrgb(122, 82, 211)
HSLhsl(259, 59%, 57%)
HSVhsv(259, 61%, 83%)
CMYKcmyk(42.2%, 61.1%, 0%, 17.3%)
CIE-LABlab(45.46, 45.74, -60.94)
CIE-LCHlch(45.46, 76.20, 306.89°)
OKLaboklab(54.93% 0.0755 -0.1738)
OKLCHoklch(54.93% 0.189 293.5)
XYZxyz(22.7980, 14.8747, 63.2853)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52D3 #ABD352
analogous
#526AD3 #7A52D3 #BB52D3
triadic
#7A52D3 #D37A52 #52D37A
tetradic
#7A52D3 #D3526A #ABD352 #52D3BB
square
#7A52D3 #D3526A #ABD352 #52D3BB
split-complementary
#7A52D3 #D3BB52 #6AD352
monochromatic
#422388 #5A2FB9 #7A52D3 #A083DF #C5B4EC

Accessibility & contrast

On white

5.28
#7A52D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7A52D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52D3
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52D3#FFFFFF#000000##FFFFFF
##7A52D31.005.283.975.28
#FFFFFF5.281.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD7
Deuteranopia (green-blind)
#0069D0
Tritanopia (blue-blind)
#626F8B
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7a52d3;
/* rgb */ color: rgb(122, 82, 211);
/* oklch */ color: oklch(54.9% 0.189 293.5);
Tailwind
colors: {
  custom: {
    50: '#a684e1',
    500: '#7a52d3',
    950: '#000000',
  },
}
SCSS
$custom: #7a52d3;
$custom-light: #a684e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52d3",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 211
  },
  "hsl": {
    "h": 258.605,
    "s": 59.447,
    "l": 57.451
  },
  "oklch": {
    "l": 0.54934,
    "c": 0.18948,
    "h": 293.5
  },
  "luminance": 0.14875
}

Semantic roles & 50–950 ramp

primary
#7A52D3
secondary
#CADAA6
accent
#E345B2
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A52D3

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

Preview Lab → · Contrast checker → · Palette generator →

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