#7A52BC#7A52BC

#7A52BC is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.3% C 0.161 H 298.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7A52BC
RGBrgb(122, 82, 188)
HSLhsl(263, 44%, 53%)
HSVhsv(263, 56%, 74%)
CMYKcmyk(35.1%, 56.4%, 0%, 26.3%)
CIE-LABlab(43.95, 39.58, -50.08)
CIE-LCHlch(43.95, 63.84, 308.32°)
OKLaboklab(53.34% 0.076 -0.1419)
OKLCHoklch(53.34% 0.161 298.2)
XYZxyz(20.1182, 13.8028, 49.1715)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52BC #94BC52
analogous
#525FBC #7A52BC #AF52BC
triadic
#7A52BC #BC7A52 #52BC7A
tetradic
#7A52BC #BC525F #94BC52 #52BCAF
square
#7A52BC #BC525F #94BC52 #52BCAF
split-complementary
#7A52BC #BCAF52 #5FBC52
monochromatic
#42296A #5D3A97 #7A52BC #9C7ECD #BEAADE

Accessibility & contrast

On white

5.58
#7A52BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7A52BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52BC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52BC#FFFFFF#000000##FFFFFF
##7A52BC1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2168C0
Deuteranopia (green-blind)
#3067BA
Tritanopia (blue-blind)
#6B687F
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7a52bc;
/* rgb */ color: rgb(122, 82, 188);
/* oklch */ color: oklch(53.3% 0.161 298.2);
Tailwind
colors: {
  custom: {
    50: '#a484d1',
    500: '#7a52bc',
    950: '#000000',
  },
}
SCSS
$custom: #7a52bc;
$custom-light: #a484d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52bc",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 188
  },
  "hsl": {
    "h": 262.642,
    "s": 44.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53344,
    "c": 0.16095,
    "h": 298.2
  },
  "luminance": 0.13803
}

Semantic roles & 50–950 ramp

primary
#7A52BC
secondary
#BBCC9E
accent
#D454A4
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7A52BC

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

Preview Lab → · Contrast checker → · Palette generator →

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