#7A5DEB#7A5DEB

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

Color values

HEX#7A5DEB
RGBrgb(122, 93, 235)
HSLhsl(252, 78%, 64%)
HSVhsv(252, 60%, 92%)
CMYKcmyk(48.1%, 60.4%, 0%, 7.8%)
CIE-LABlab(49.45, 46.29, -68.10)
CIE-LCHlch(49.45, 82.34, 304.21°)
OKLaboklab(58.37% 0.0623 -0.1948)
OKLCHoklch(58.37% 0.205 287.7)
XYZxyz(26.9314, 17.9633, 80.6294)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5DEB #CEEB5D
analogous
#5D87EB #7A5DEB #C15DEB
triadic
#7A5DEB #EB7A5D #5DEB7A
tetradic
#7A5DEB #EB5D87 #CEEB5D #5DEBC1
square
#7A5DEB #EB5D87 #CEEB5D #5DEBC1
split-complementary
#7A5DEB #EBC15D #87EB5D
monochromatic
#3717B7 #4D27E4 #7A5DEB #A793F2 #D3CAF8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A5DEB#FFFFFF#000000##000000
##7A5DEB1.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)
#0079F0
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#537E9B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7a5deb;
/* rgb */ color: rgb(122, 93, 235);
/* oklch */ color: oklch(58.4% 0.205 287.7);
Tailwind
colors: {
  custom: {
    50: '#a88cf2',
    500: '#7a5deb',
    950: '#000000',
  },
}
SCSS
$custom: #7a5deb;
$custom-light: #a88cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5deb",
  "rgb": {
    "r": 122,
    "g": 93,
    "b": 235
  },
  "hsl": {
    "h": 252.254,
    "s": 78.022,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58374,
    "c": 0.20454,
    "h": 287.7
  },
  "luminance": 0.17964
}

Semantic roles & 50–950 ramp

primary
#7A5DEB
secondary
#E0EBB9
accent
#DA0BB0
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7A5DEB

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

Preview Lab → · Contrast checker → · Palette generator →

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