#7A52BB#7A52BB

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

Color values

HEX#7A52BB
RGBrgb(122, 82, 187)
HSLhsl(263, 44%, 53%)
HSVhsv(263, 56%, 73%)
CMYKcmyk(34.8%, 56.1%, 0%, 26.7%)
CIE-LABlab(43.89, 39.32, -49.60)
CIE-LCHlch(43.89, 63.29, 308.40°)
OKLaboklab(53.28% 0.0759 -0.1405)
OKLCHoklch(53.28% 0.16 298.4)
XYZxyz(20.0108, 13.7598, 48.6057)
Luminance0.1376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52BB #93BB52
analogous
#525FBB #7A52BB #AE52BB
triadic
#7A52BB #BB7A52 #52BB7A
tetradic
#7A52BB #BB525F #93BB52 #52BBAE
square
#7A52BB #BB525F #93BB52 #52BBAE
split-complementary
#7A52BB #BBAE52 #5FBB52
monochromatic
#422969 #5D3B95 #7A52BB #9C7ECC #BEAADE

Accessibility & contrast

On white

5.60
#7A52BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#7A52BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52BB
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52BB#FFFFFF#000000##FFFFFF
##7A52BB1.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2368BF
Deuteranopia (green-blind)
#3167B9
Tritanopia (blue-blind)
#6C677E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7a52bb;
/* rgb */ color: rgb(122, 82, 187);
/* oklch */ color: oklch(53.3% 0.160 298.4);
Tailwind
colors: {
  custom: {
    50: '#a484d0',
    500: '#7a52bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a52bb;
$custom-light: #a484d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52bb",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 187
  },
  "hsl": {
    "h": 262.857,
    "s": 43.568,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53278,
    "c": 0.15969,
    "h": 298.4
  },
  "luminance": 0.1376
}

Semantic roles & 50–950 ramp

primary
#7A52BB
secondary
#BACB9E
accent
#D354A3
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7A52BB

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

Preview Lab → · Contrast checker → · Palette generator →

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