#7A5CE6#7A5CE6

#7A5CE6 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.9% C 0.200 H 288.6°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7A5CE6
RGBrgb(122, 92, 230)
HSLhsl(253, 73%, 63%)
HSVhsv(253, 60%, 90%)
CMYKcmyk(47%, 60%, 0%, 9.8%)
CIE-LABlab(48.89, 45.43, -66.19)
CIE-LCHlch(48.89, 80.28, 304.46°)
OKLaboklab(57.85% 0.0636 -0.1892)
OKLCHoklch(57.85% 0.2 288.6)
XYZxyz(26.1320, 17.5040, 76.8493)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CE6 #C8E65C
analogous
#5C83E6 #7A5CE6 #BF5CE6
triadic
#7A5CE6 #E67A5C #5CE67A
tetradic
#7A5CE6 #E65C83 #C8E65C #5CE6BF
square
#7A5CE6 #E65C83 #C8E65C #5CE6BF
split-complementary
#7A5CE6 #E6BF5C #83E65C
monochromatic
#3A1BAD #4F27DE #7A5CE6 #A591EE #D1C6F6

Accessibility & contrast

On white

4.67
#7A5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7A5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CE6
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CE6#FFFFFF#000000##FFFFFF
##7A5CE61.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#0071E3
Tritanopia (blue-blind)
#577C98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5ce6;
/* rgb */ color: rgb(122, 92, 230);
/* oklch */ color: oklch(57.9% 0.200 288.6);
Tailwind
colors: {
  custom: {
    50: '#a88bef',
    500: '#7a5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ce6;
$custom-light: #a88bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ce6",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 253.043,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57852,
    "c": 0.19964,
    "h": 288.6
  },
  "luminance": 0.17505
}

Semantic roles & 50–950 ramp

primary
#7A5CE6
secondary
#DDE8B6
accent
#D610AB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #7A5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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