#7A5CE5#7A5CE5

#7A5CE5 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.8% C 0.198 H 288.7°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7A5CE5
RGBrgb(122, 92, 229)
HSLhsl(253, 72%, 63%)
HSVhsv(253, 60%, 90%)
CMYKcmyk(46.7%, 59.8%, 0%, 10.2%)
CIE-LABlab(48.82, 45.15, -65.74)
CIE-LCHlch(48.82, 79.75, 304.48°)
OKLaboklab(57.78% 0.0636 -0.1879)
OKLCHoklch(57.78% 0.198 288.7)
XYZxyz(25.9920, 17.4480, 76.1118)
Luminance0.1745 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CE5 #C7E55C
analogous
#5C82E5 #7A5CE5 #BF5CE5
triadic
#7A5CE5 #E57A5C #5CE57A
tetradic
#7A5CE5 #E55C82 #C7E55C #5CE5BF
square
#7A5CE5 #E55C82 #C7E55C #5CE5BF
split-complementary
#7A5CE5 #E5BF5C #82E55C
monochromatic
#3B1BAB #4F27DD #7A5CE5 #A591ED #D0C6F6

Accessibility & contrast

On white

4.68
#7A5CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7A5CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CE5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CE5#FFFFFF#000000##FFFFFF
##7A5CE51.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a5ce5;
/* rgb */ color: rgb(122, 92, 229);
/* oklch */ color: oklch(57.8% 0.198 288.7);
Tailwind
colors: {
  custom: {
    50: '#a88bee',
    500: '#7a5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ce5;
$custom-light: #a88bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ce5",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 253.139,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5778,
    "c": 0.19839,
    "h": 288.7
  },
  "luminance": 0.17449
}

Semantic roles & 50–950 ramp

primary
#7A5CE5
secondary
#DCE7B6
accent
#D511AA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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