#7A5CEB#7A5CEB

#7A5CEB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.2% C 0.206 H 287.9°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7A5CEB
RGBrgb(122, 92, 235)
HSLhsl(253, 78%, 64%)
HSVhsv(253, 61%, 92%)
CMYKcmyk(48.1%, 60.9%, 0%, 7.8%)
CIE-LABlab(49.24, 46.85, -68.44)
CIE-LCHlch(49.24, 82.94, 304.39°)
OKLaboklab(58.22% 0.0633 -0.1959)
OKLCHoklch(58.22% 0.206 287.9)
XYZxyz(26.8442, 17.7889, 80.6003)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CEB #CDEB5C
analogous
#5C86EB #7A5CEB #C15CEB
triadic
#7A5CEB #EB7A5C #5CEB7A
tetradic
#7A5CEB #EB5C86 #CDEB5C #5CEBC1
square
#7A5CEB #EB5C86 #CDEB5C #5CEBC1
split-complementary
#7A5CEB #EBC15C #86EB5C
monochromatic
#3816B6 #4E25E4 #7A5CEB #A693F2 #D3C9F8

Accessibility & contrast

On white

4.61
#7A5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7A5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CEB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CEB#FFFFFF#000000##FFFFFF
##7A5CEB1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#547E9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7a5ceb;
/* rgb */ color: rgb(122, 92, 235);
/* oklch */ color: oklch(58.2% 0.206 287.9);
Tailwind
colors: {
  custom: {
    50: '#a88bf2',
    500: '#7a5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ceb;
$custom-light: #a88bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ceb",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 252.587,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.58219,
    "c": 0.20583,
    "h": 287.9
  },
  "luminance": 0.1779
}

Semantic roles & 50–950 ramp

primary
#7A5CEB
secondary
#E0EAB8
accent
#DA0BAF
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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