#7A5CEE#7A5CEE

#7A5CEE is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.4% C 0.210 H 287.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7A5CEE
RGBrgb(122, 92, 238)
HSLhsl(252, 81%, 65%)
HSVhsv(252, 61%, 93%)
CMYKcmyk(48.7%, 61.3%, 0%, 6.7%)
CIE-LABlab(49.45, 47.70, -69.78)
CIE-LCHlch(49.45, 84.52, 304.36°)
OKLaboklab(58.44% 0.0631 -0.1998)
OKLCHoklch(58.44% 0.21 287.5)
XYZxyz(27.2813, 17.9637, 82.9022)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CEE #D0EE5C
analogous
#5C87EE #7A5CEE #C35CEE
triadic
#7A5CEE #EE7A5C #5CEE7A
tetradic
#7A5CEE #EE5C87 #D0EE5C #5CEEC3
square
#7A5CEE #EE5C87 #D0EE5C #5CEEC3
split-complementary
#7A5CEE #EEC35C #87EE5C
monochromatic
#3614BC #4D25E8 #7A5CEE #A793F4 #D4CBFA

Accessibility & contrast

On white

4.57
#7A5CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7A5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7A5CEE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CEE#FFFFFF#000000##000000
##7A5CEE1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0072EB
Tritanopia (blue-blind)
#517F9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7a5cee;
/* rgb */ color: rgb(122, 92, 238);
/* oklch */ color: oklch(58.4% 0.210 287.5);
Tailwind
colors: {
  custom: {
    50: '#a98bf4',
    500: '#7a5cee',
    950: '#000000',
  },
}
SCSS
$custom: #7a5cee;
$custom-light: #a98bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5cee",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 252.329,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58441,
    "c": 0.20952,
    "h": 287.5
  },
  "luminance": 0.17965
}

Semantic roles & 50–950 ramp

primary
#7A5CEE
secondary
#E2ECBA
accent
#DD08B2
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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