#7A5CDC#7A5CDC

#7A5CDC is a mid, vivid violet. Relative luminance 0.170; OKLCH L 57.1% C 0.187 H 290.0°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7A5CDC
RGBrgb(122, 92, 220)
HSLhsl(254, 65%, 61%)
HSVhsv(254, 58%, 86%)
CMYKcmyk(44.5%, 58.2%, 0%, 13.7%)
CIE-LABlab(48.21, 42.61, -61.64)
CIE-LCHlch(48.21, 74.93, 304.66°)
OKLaboklab(57.14% 0.0639 -0.1758)
OKLCHoklch(57.14% 0.187 290)
XYZxyz(24.7678, 16.9583, 69.6645)
Luminance0.1696 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5CDC #BEDC5C
analogous
#5C7EDC #7A5CDC #BA5CDC
triadic
#7A5CDC #DC7A5C #5CDC7A
tetradic
#7A5CDC #DC5C7E #BEDC5C #5CDCBA
square
#7A5CDC #DC5C7E #BEDC5C #5CDCBA
split-complementary
#7A5CDC #DCBA5C #7EDC5C
monochromatic
#3E229C #522CCE #7A5CDC #A38EE7 #CCC1F2

Accessibility & contrast

On white

4.78
#7A5CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7A5CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5CDC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5CDC#FFFFFF#000000##FFFFFF
##7A5CDC1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#016FD9
Tritanopia (blue-blind)
#5C7993
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a5cdc;
/* rgb */ color: rgb(122, 92, 220);
/* oklch */ color: oklch(57.1% 0.187 290.0);
Tailwind
colors: {
  custom: {
    50: '#a78be8',
    500: '#7a5cdc',
    950: '#000000',
  },
}
SCSS
$custom: #7a5cdc;
$custom-light: #a78be8;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5cdc",
  "rgb": {
    "r": 122,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 254.063,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.57137,
    "c": 0.1871,
    "h": 290
  },
  "luminance": 0.16959
}

Semantic roles & 50–950 ramp

primary
#7A5CDC
secondary
#D7E2B2
accent
#CC19A2
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7A5CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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