#7A5BEA#7A5BEA

#7A5BEA is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.0% C 0.206 H 288.2°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7A5BEA
RGBrgb(122, 91, 234)
HSLhsl(253, 77%, 64%)
HSVhsv(253, 61%, 92%)
CMYKcmyk(47.9%, 61.1%, 0%, 8.2%)
CIE-LABlab(48.96, 47.12, -68.34)
CIE-LCHlch(48.96, 83.01, 304.59°)
OKLaboklab(57.99% 0.0644 -0.1955)
OKLCHoklch(57.99% 0.206 288.2)
XYZxyz(26.6141, 17.5591, 79.8129)
Luminance0.1756 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5BEA #CBEA5B
analogous
#5B83EA #7A5BEA #C15BEA
triadic
#7A5BEA #EA7A5B #5BEA7A
tetradic
#7A5BEA #EA5B83 #CBEA5B #5BEAC1
square
#7A5BEA #EA5B83 #CBEA5B #5BEAC1
split-complementary
#7A5BEA #EAC15B #83EA5B
monochromatic
#3917B4 #4E25E3 #7A5BEA #A691F1 #D2C8F8

Accessibility & contrast

On white

4.65
#7A5BEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7A5BEA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5BEA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5BEA#FFFFFF#000000##FFFFFF
##7A5BEA1.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#547D9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7a5bea;
/* rgb */ color: rgb(122, 91, 234);
/* oklch */ color: oklch(58.0% 0.206 288.2);
Tailwind
colors: {
  custom: {
    50: '#a88bf2',
    500: '#7a5bea',
    950: '#000000',
  },
}
SCSS
$custom: #7a5bea;
$custom-light: #a88bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5bea",
  "rgb": {
    "r": 122,
    "g": 91,
    "b": 234
  },
  "hsl": {
    "h": 253.007,
    "s": 77.297,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57991,
    "c": 0.20588,
    "h": 288.2
  },
  "luminance": 0.1756
}

Semantic roles & 50–950 ramp

primary
#7A5BEA
secondary
#DFEAB7
accent
#DA0CAD
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5BEA

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

Preview Lab → · Contrast checker → · Palette generator →

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