#7A5DDD#7A5DDD

#7A5DDD is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.4% C 0.187 H 289.6°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7A5DDD
RGBrgb(122, 93, 221)
HSLhsl(254, 65%, 62%)
HSVhsv(254, 58%, 87%)
CMYKcmyk(44.8%, 57.9%, 0%, 13.3%)
CIE-LABlab(48.49, 42.32, -61.74)
CIE-LCHlch(48.49, 74.85, 304.43°)
OKLaboklab(57.37% 0.0628 -0.1761)
OKLCHoklch(57.37% 0.187 289.6)
XYZxyz(24.9879, 17.1858, 70.3932)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5DDD #C0DD5D
analogous
#5D80DD #7A5DDD #BA5DDD
triadic
#7A5DDD #DD7A5D #5DDD7A
tetradic
#7A5DDD #DD5D80 #C0DD5D #5DDDBA
square
#7A5DDD #DD5D80 #C0DD5D #5DDDBA
split-complementary
#7A5DDD #DDBA5D #80DD5D
monochromatic
#3E219E #512CD1 #7A5DDD #A490E8 #CDC2F2

Accessibility & contrast

On white

4.73
#7A5DDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7A5DDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5DDD
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5DDD#FFFFFF#000000##FFFFFF
##7A5DDD1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E1
Deuteranopia (green-blind)
#0370DA
Tritanopia (blue-blind)
#5C7A94
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7a5ddd;
/* rgb */ color: rgb(122, 93, 221);
/* oklch */ color: oklch(57.4% 0.187 289.6);
Tailwind
colors: {
  custom: {
    50: '#a78ce8',
    500: '#7a5ddd',
    950: '#000000',
  },
}
SCSS
$custom: #7a5ddd;
$custom-light: #a78ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5ddd",
  "rgb": {
    "r": 122,
    "g": 93,
    "b": 221
  },
  "hsl": {
    "h": 253.594,
    "s": 65.306,
    "l": 61.569
  },
  "oklch": {
    "l": 0.57368,
    "c": 0.187,
    "h": 289.6
  },
  "luminance": 0.17187
}

Semantic roles & 50–950 ramp

primary
#7A5DDD
secondary
#D8E3B3
accent
#CD18A4
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5DDD

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

Preview Lab → · Contrast checker → · Palette generator →

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