#7A5CD4#7A5CD4

#7A5CD4 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.6% C 0.177 H 291.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7A5CD4
RGBrgb(122, 92, 212)
HSLhsl(255, 58%, 60%)
HSVhsv(255, 57%, 83%)
CMYKcmyk(42.5%, 56.6%, 0%, 16.9%)
CIE-LABlab(47.68, 40.37, -57.93)
CIE-LCHlch(47.68, 70.61, 304.87°)
OKLaboklab(56.58% 0.064 -0.165)
OKLCHoklch(56.58% 0.177 291.2)
XYZxyz(23.7336, 16.5446, 64.2175)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CD4 #B6D45C
analogous
#5C7AD4 #7A5CD4 #B65CD4
triadic
#7A5CD4 #D47A5C #5CD47A
tetradic
#7A5CD4 #D45C7A #B6D45C #5CD4B6
square
#7A5CD4 #D45C7A #B6D45C #5CD4B6
split-complementary
#7A5CD4 #D4B65C #7AD45C
monochromatic
#402690 #5633C0 #7A5CD4 #A28CE1 #C9BDEE

Accessibility & contrast

On white

4.87
#7A5CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7A5CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CD4
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CD4#FFFFFF#000000##FFFFFF
##7A5CD41.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1573D8
Deuteranopia (green-blind)
#1F6FD1
Tritanopia (blue-blind)
#61768F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a5cd4;
/* rgb */ color: rgb(122, 92, 212);
/* oklch */ color: oklch(56.6% 0.177 291.2);
Tailwind
colors: {
  custom: {
    50: '#a68be2',
    500: '#7a5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #7a5cd4;
$custom-light: #a68be2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5cd4",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 255,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56582,
    "c": 0.17693,
    "h": 291.2
  },
  "luminance": 0.16545
}

Semantic roles & 50–950 ramp

primary
#7A5CD4
secondary
#D2DDAF
accent
#E146BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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