#7A5CD2#7A5CD2

#7A5CD2 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.174 H 291.5°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#7A5CD2
RGBrgb(122, 92, 210)
HSLhsl(255, 57%, 59%)
HSVhsv(255, 56%, 82%)
CMYKcmyk(41.9%, 56.2%, 0%, 17.6%)
CIE-LABlab(47.55, 39.81, -56.99)
CIE-LCHlch(47.55, 69.52, 304.94°)
OKLaboklab(56.45% 0.064 -0.1622)
OKLCHoklch(56.45% 0.174 291.5)
XYZxyz(23.4829, 16.4443, 62.8971)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CD2 #B4D25C
analogous
#5C79D2 #7A5CD2 #B55CD2
triadic
#7A5CD2 #D27A5C #5CD27A
tetradic
#7A5CD2 #D25C79 #B4D25C #5CD2B5
square
#7A5CD2 #D25C79 #B4D25C #5CD2B5
split-complementary
#7A5CD2 #D2B55C #79D25C
monochromatic
#41278D #5734BD #7A5CD2 #A18CDF #C8BCEC

Accessibility & contrast

On white

4.90
#7A5CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7A5CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CD2
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CD2#FFFFFF#000000##FFFFFF
##7A5CD21.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A73D6
Deuteranopia (green-blind)
#236ECF
Tritanopia (blue-blind)
#62758E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a5cd2;
/* rgb */ color: rgb(122, 92, 210);
/* oklch */ color: oklch(56.4% 0.174 291.5);
Tailwind
colors: {
  custom: {
    50: '#a68be0',
    500: '#7a5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7a5cd2;
$custom-light: #a68be0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5cd2",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 255.254,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56446,
    "c": 0.17437,
    "h": 291.5
  },
  "luminance": 0.16445
}

Semantic roles & 50–950 ramp

primary
#7A5CD2
secondary
#D0DCAE
accent
#E048B9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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