#7A52DE#7A52DE

#7A52DE is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.7% C 0.203 H 291.6°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7A52DE
RGBrgb(122, 82, 222)
HSLhsl(257, 68%, 60%)
HSVhsv(257, 63%, 87%)
CMYKcmyk(45%, 63.1%, 0%, 12.9%)
CIE-LABlab(46.24, 48.74, -65.96)
CIE-LCHlch(46.24, 82.02, 306.46°)
OKLaboklab(55.74% 0.0746 -0.1886)
OKLCHoklch(55.74% 0.203 291.6)
XYZxyz(24.2245, 15.4453, 70.7980)
Luminance0.1545 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52DE #B6DE52
analogous
#5270DE #7A52DE #C052DE
triadic
#7A52DE #DE7A52 #52DE7A
tetradic
#7A52DE #DE5270 #B6DE52 #52DEC0
square
#7A52DE #DE5270 #B6DE52 #52DEC0
split-complementary
#7A52DE #DEC052 #70DE52
monochromatic
#401D99 #5627CC #7A52DE #A285E8 #C9B9F2

Accessibility & contrast

On white

5.14
#7A52DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7A52DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52DE
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52DE#FFFFFF#000000##FFFFFF
##7A52DE1.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a52de;
/* rgb */ color: rgb(122, 82, 222);
/* oklch */ color: oklch(55.7% 0.203 291.6);
Tailwind
colors: {
  custom: {
    50: '#a885e9',
    500: '#7a52de',
    950: '#000000',
  },
}
SCSS
$custom: #7a52de;
$custom-light: #a885e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52de",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 222
  },
  "hsl": {
    "h": 257.143,
    "s": 67.961,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55744,
    "c": 0.2028,
    "h": 291.6
  },
  "luminance": 0.15446
}

Semantic roles & 50–950 ramp

primary
#7A52DE
secondary
#D2E1AB
accent
#EB3DB9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A52DE

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

Preview Lab → · Contrast checker → · Palette generator →

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