#7A5EC1#7A5EC1

#7A5EC1 is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.7% C 0.149 H 294.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#7A5EC1
RGBrgb(122, 94, 193)
HSLhsl(257, 44%, 56%)
HSVhsv(257, 51%, 76%)
CMYKcmyk(36.8%, 51.3%, 0%, 24.3%)
CIE-LABlab(46.97, 33.97, -48.16)
CIE-LCHlch(46.97, 58.93, 305.20°)
OKLaboklab(55.68% 0.0608 -0.1362)
OKLCHoklch(55.68% 0.149 294.1)
XYZxyz(21.6519, 15.9928, 52.3879)
Luminance0.1599 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5EC1 #A5C15E
analogous
#5E74C1 #7A5EC1 #AC5EC1
triadic
#7A5EC1 #C17A5E #5EC17A
tetradic
#7A5EC1 #C15E74 #A5C15E #5EC1AC
square
#7A5EC1 #C15E74 #A5C15E #5EC1AC
split-complementary
#7A5EC1 #C1AC5E #74C15E
monochromatic
#422E77 #5B3FA3 #7A5EC1 #9F8AD2 #C3B6E3

Accessibility & contrast

On white

5.00
#7A5EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#7A5EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5EC1
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5EC1#FFFFFF#000000##FFFFFF
##7A5EC11.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3770C4
Deuteranopia (green-blind)
#3D6EBF
Tritanopia (blue-blind)
#697287
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a5ec1;
/* rgb */ color: rgb(122, 94, 193);
/* oklch */ color: oklch(55.7% 0.149 294.1);
Tailwind
colors: {
  custom: {
    50: '#a48cd4',
    500: '#7a5ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ec1;
$custom-light: #a48cd4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ec1",
  "rgb": {
    "r": 122,
    "g": 94,
    "b": 193
  },
  "hsl": {
    "h": 256.97,
    "s": 44.395,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55675,
    "c": 0.1492,
    "h": 294.1
  },
  "luminance": 0.15993
}

Semantic roles & 50–950 ramp

primary
#7A5EC1
secondary
#C6D2A9
accent
#D454B0
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#0F0C14
muted
#7F7D83

Preview Lab

Preview with #7A5EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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