#7A52E2#7A52E2

#7A52E2 is a mid, highly saturated violet. Relative luminance 0.157; OKLCH L 56.0% C 0.208 H 291.0°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7A52E2
RGBrgb(122, 82, 226)
HSLhsl(257, 71%, 60%)
HSVhsv(257, 64%, 89%)
CMYKcmyk(46%, 63.7%, 0%, 11.4%)
CIE-LABlab(46.53, 49.84, -67.76)
CIE-LCHlch(46.53, 84.12, 306.34°)
OKLaboklab(56.05% 0.0743 -0.1939)
OKLCHoklch(56.05% 0.208 291)
XYZxyz(24.7669, 15.6623, 73.6549)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52E2 #BAE252
analogous
#5272E2 #7A52E2 #C252E2
triadic
#7A52E2 #E27A52 #52E27A
tetradic
#7A52E2 #E25272 #BAE252 #52E2C2
square
#7A52E2 #E25272 #BAE252 #52E2C2
split-complementary
#7A52E2 #E2C252 #72E252
monochromatic
#3F1B9F #5423D3 #7A52E2 #A286EB #CBBBF4

Accessibility & contrast

On white

5.08
#7A52E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7A52E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52E2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52E2#FFFFFF#000000##FFFFFF
##7A52E21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E7
Deuteranopia (green-blind)
#006BDF
Tritanopia (blue-blind)
#5A7493
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7a52e2;
/* rgb */ color: rgb(122, 82, 226);
/* oklch */ color: oklch(56.0% 0.208 291.0);
Tailwind
colors: {
  custom: {
    50: '#a885ec',
    500: '#7a52e2',
    950: '#000000',
  },
}
SCSS
$custom: #7a52e2;
$custom-light: #a885ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52e2",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 226
  },
  "hsl": {
    "h": 256.667,
    "s": 71.287,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56045,
    "c": 0.20761,
    "h": 291
  },
  "luminance": 0.15663
}

Semantic roles & 50–950 ramp

primary
#7A52E2
secondary
#D4E3AC
accent
#D3129E
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A52E2

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

Preview Lab → · Contrast checker → · Palette generator →

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