#7A5DEC#7A5DEC

#7A5DEC is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.4% C 0.206 H 287.6°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7A5DEC
RGBrgb(122, 93, 236)
HSLhsl(252, 79%, 65%)
HSVhsv(252, 61%, 93%)
CMYKcmyk(48.3%, 60.6%, 0%, 7.5%)
CIE-LABlab(49.52, 46.57, -68.54)
CIE-LCHlch(49.52, 82.87, 304.19°)
OKLaboklab(58.45% 0.0622 -0.1962)
OKLCHoklch(58.45% 0.206 287.6)
XYZxyz(27.0763, 18.0212, 81.3924)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5DEC #CFEC5D
analogous
#5D88EC #7A5DEC #C25DEC
triadic
#7A5DEC #EC7A5D #5DEC7A
tetradic
#7A5DEC #EC5D88 #CFEC5D #5DECC2
square
#7A5DEC #EC5D88 #CFEC5D #5DECC2
split-complementary
#7A5DEC #ECC25D #88EC5D
monochromatic
#3716B9 #4D26E6 #7A5DEC #A794F2 #D4CBF9

Accessibility & contrast

On white

4.56
#7A5DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7A5DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5DEC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5DEC#FFFFFF#000000##000000
##7A5DEC1.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0072E9
Tritanopia (blue-blind)
#537F9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7a5dec;
/* rgb */ color: rgb(122, 93, 236);
/* oklch */ color: oklch(58.4% 0.206 287.6);
Tailwind
colors: {
  custom: {
    50: '#a98cf3',
    500: '#7a5dec',
    950: '#000000',
  },
}
SCSS
$custom: #7a5dec;
$custom-light: #a98cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5dec",
  "rgb": {
    "r": 122,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 252.168,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58448,
    "c": 0.20579,
    "h": 287.6
  },
  "luminance": 0.18022
}

Semantic roles & 50–950 ramp

primary
#7A5DEC
secondary
#E1EBBA
accent
#DB0AB1
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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