#7A52EA#7A52EA

#7A52EA is a mid, highly saturated violet. Relative luminance 0.161; OKLCH L 56.7% C 0.217 H 289.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7A52EA
RGBrgb(122, 82, 234)
HSLhsl(256, 78%, 62%)
HSVhsv(256, 65%, 92%)
CMYKcmyk(47.9%, 65%, 0%, 8.2%)
CIE-LABlab(47.12, 52.05, -71.32)
CIE-LCHlch(47.12, 88.29, 306.12°)
OKLaboklab(56.66% 0.0734 -0.2043)
OKLCHoklch(56.66% 0.217 289.8)
XYZxyz(25.8904, 16.1116, 79.5716)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52EA #C2EA52
analogous
#5276EA #7A52EA #C652EA
triadic
#7A52EA #EA7A52 #52EA7A
tetradic
#7A52EA #EA5276 #C2EA52 #52EAC6
square
#7A52EA #EA5276 #C2EA52 #52EAC6
split-complementary
#7A52EA #EAC652 #76EA52
monochromatic
#3D15AD #501CE3 #7A52EA #A489F1 #CEBFF7

Accessibility & contrast

On white

4.97
#7A52EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7A52EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52EA
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52EA#FFFFFF#000000##FFFFFF
##7A52EA1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073EF
Deuteranopia (green-blind)
#006CE7
Tritanopia (blue-blind)
#557797
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a52ea;
/* rgb */ color: rgb(122, 82, 234);
/* oklch */ color: oklch(56.7% 0.217 289.8);
Tailwind
colors: {
  custom: {
    50: '#a985f2',
    500: '#7a52ea',
    950: '#000000',
  },
}
SCSS
$custom: #7a52ea;
$custom-light: #a985f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52ea",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 234
  },
  "hsl": {
    "h": 255.789,
    "s": 78.351,
    "l": 61.961
  },
  "oklch": {
    "l": 0.56659,
    "c": 0.21711,
    "h": 289.8
  },
  "luminance": 0.16113
}

Semantic roles & 50–950 ramp

primary
#7A52EA
secondary
#D9E8B0
accent
#DB0BA4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A52EA

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

Preview Lab → · Contrast checker → · Palette generator →

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