#7A52F2#7A52F2

#7A52F2 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.227 H 288.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#7A52F2
RGBrgb(122, 82, 242)
HSLhsl(255, 86%, 64%)
HSVhsv(255, 66%, 95%)
CMYKcmyk(49.6%, 66.1%, 0%, 5.1%)
CIE-LABlab(47.73, 54.26, -74.83)
CIE-LCHlch(47.73, 92.43, 305.95°)
OKLaboklab(57.29% 0.0724 -0.2146)
OKLCHoklch(57.29% 0.227 288.6)
XYZxyz(27.0657, 16.5818, 85.7617)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52F2 #CAF252
analogous
#527AF2 #7A52F2 #CA52F2
triadic
#7A52F2 #F27A52 #52F27A
tetradic
#7A52F2 #F2527A #CAF252 #52F2CA
square
#7A52F2 #F2527A #CAF252 #52F2CA
split-complementary
#7A52F2 #F2CA52 #7AF252
monochromatic
#390EBC #4E19EE #7A52F2 #A68BF6 #D2C4FB

Accessibility & contrast

On white

4.86
#7A52F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#7A52F2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52F2
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52F2#FFFFFF#000000##FFFFFF
##7A52F21.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F7
Deuteranopia (green-blind)
#006DEF
Tritanopia (blue-blind)
#4F7A9B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a52f2;
/* rgb */ color: rgb(122, 82, 242);
/* oklch */ color: oklch(57.3% 0.227 288.6);
Tailwind
colors: {
  custom: {
    50: '#aa85f7',
    500: '#7a52f2',
    950: '#000000',
  },
}
SCSS
$custom: #7a52f2;
$custom-light: #aa85f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52f2",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 242
  },
  "hsl": {
    "h": 255,
    "s": 86.022,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57286,
    "c": 0.2265,
    "h": 288.6
  },
  "luminance": 0.16583
}

Semantic roles & 50–950 ramp

primary
#7A52F2
secondary
#DEECB4
accent
#E303AB
background
#FBF8FF
surface
#F6EFFF
border
#D0CAD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A52F2

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

Preview Lab → · Contrast checker → · Palette generator →

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