#7A52DF#7A52DF

#7A52DF is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.8% C 0.204 H 291.4°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7A52DF
RGBrgb(122, 82, 223)
HSLhsl(257, 69%, 60%)
HSVhsv(257, 63%, 87%)
CMYKcmyk(45.3%, 63.2%, 0%, 12.5%)
CIE-LABlab(46.31, 49.02, -66.41)
CIE-LCHlch(46.31, 82.54, 306.43°)
OKLaboklab(55.82% 0.0745 -0.1899)
OKLCHoklch(55.82% 0.204 291.4)
XYZxyz(24.3589, 15.4990, 71.5059)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52DF #B7DF52
analogous
#5271DF #7A52DF #C052DF
triadic
#7A52DF #DF7A52 #52DF7A
tetradic
#7A52DF #DF5271 #B7DF52 #52DFC0
square
#7A52DF #DF5271 #B7DF52 #52DFC0
split-complementary
#7A52DF #DFC052 #71DF52
monochromatic
#401D9A #5626CE #7A52DF #A286E9 #C9B9F2

Accessibility & contrast

On white

5.12
#7A52DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7A52DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52DF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52DF#FFFFFF#000000##FFFFFF
##7A52DF1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006BDC
Tritanopia (blue-blind)
#5C7391
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7a52df;
/* rgb */ color: rgb(122, 82, 223);
/* oklch */ color: oklch(55.8% 0.204 291.4);
Tailwind
colors: {
  custom: {
    50: '#a885ea',
    500: '#7a52df',
    950: '#000000',
  },
}
SCSS
$custom: #7a52df;
$custom-light: #a885ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52df",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 223
  },
  "hsl": {
    "h": 257.021,
    "s": 68.78,
    "l": 59.804
  },
  "oklch": {
    "l": 0.55819,
    "c": 0.20401,
    "h": 291.4
  },
  "luminance": 0.155
}

Semantic roles & 50–950 ramp

primary
#7A52DF
secondary
#D2E2AB
accent
#EC3CBA
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A52DF

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

Preview Lab → · Contrast checker → · Palette generator →

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