#7A52EB#7A52EB

#7A52EB is a mid, highly saturated violet. Relative luminance 0.162; OKLCH L 56.7% C 0.218 H 289.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7A52EB
RGBrgb(122, 82, 235)
HSLhsl(256, 79%, 62%)
HSVhsv(256, 65%, 92%)
CMYKcmyk(48.1%, 65.1%, 0%, 7.8%)
CIE-LABlab(47.20, 52.32, -71.76)
CIE-LCHlch(47.20, 88.81, 306.10°)
OKLaboklab(56.74% 0.0733 -0.2056)
OKLCHoklch(56.74% 0.218 289.6)
XYZxyz(26.0344, 16.1693, 80.3304)
Luminance0.1617 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A52EB #C3EB52
analogous
#5277EB #7A52EB #C652EB
triadic
#7A52EB #EB7A52 #52EB7A
tetradic
#7A52EB #EB5277 #C3EB52 #52EBC6
square
#7A52EB #EB5277 #C3EB52 #52EBC6
split-complementary
#7A52EB #EBC652 #77EB52
monochromatic
#3C14AE #501BE5 #7A52EB #A489F1 #CEC0F8

Accessibility & contrast

On white

4.96
#7A52EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7A52EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A52EB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A52EB#FFFFFF#000000##FFFFFF
##7A52EB1.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F0
Deuteranopia (green-blind)
#006CE8
Tritanopia (blue-blind)
#547798
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7a52eb;
/* rgb */ color: rgb(122, 82, 235);
/* oklch */ color: oklch(56.7% 0.218 289.6);
Tailwind
colors: {
  custom: {
    50: '#a985f2',
    500: '#7a52eb',
    950: '#000000',
  },
}
SCSS
$custom: #7a52eb;
$custom-light: #a985f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a52eb",
  "rgb": {
    "r": 122,
    "g": 82,
    "b": 235
  },
  "hsl": {
    "h": 255.686,
    "s": 79.275,
    "l": 62.157
  },
  "oklch": {
    "l": 0.56736,
    "c": 0.21829,
    "h": 289.6
  },
  "luminance": 0.1617
}

Semantic roles & 50–950 ramp

primary
#7A52EB
secondary
#DAE8B0
accent
#DC0AA5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A52EB

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

Preview Lab → · Contrast checker → · Palette generator →

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