#7A5ACC#7A5ACC

#7A5ACC is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.7% C 0.170 H 293.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#7A5ACC
RGBrgb(122, 90, 204)
HSLhsl(257, 53%, 58%)
HSVhsv(257, 56%, 80%)
CMYKcmyk(40.2%, 55.9%, 0%, 20%)
CIE-LABlab(46.72, 39.30, -54.89)
CIE-LCHlch(46.72, 67.51, 305.61°)
OKLaboklab(55.71% 0.0663 -0.156)
OKLCHoklch(55.71% 0.17 293)
XYZxyz(22.5784, 15.8090, 58.9769)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A5ACC #ACCC5A
analogous
#5A73CC #7A5ACC #B35ACC
triadic
#7A5ACC #CC7A5A #5ACC7A
tetradic
#7A5ACC #CC5A73 #ACCC5A #5ACCB3
square
#7A5ACC #CC5A73 #ACCC5A #5ACCB3
split-complementary
#7A5ACC #CCB35A #73CC5A
monochromatic
#422983 #5937B2 #7A5ACC #A089DA #C5B7E9

Accessibility & contrast

On white

5.05
#7A5ACC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#7A5ACC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A5ACC
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A5ACC#FFFFFF#000000##FFFFFF
##7A5ACC1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F70D0
Deuteranopia (green-blind)
#296DC9
Tritanopia (blue-blind)
#64728A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a5acc;
/* rgb */ color: rgb(122, 90, 204);
/* oklch */ color: oklch(55.7% 0.170 293.0);
Tailwind
colors: {
  custom: {
    50: '#a58adc',
    500: '#7a5acc',
    950: '#000000',
  },
}
SCSS
$custom: #7a5acc;
$custom-light: #a58adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a5acc",
  "rgb": {
    "r": 122,
    "g": 90,
    "b": 204
  },
  "hsl": {
    "h": 256.842,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55711,
    "c": 0.16952,
    "h": 293
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#7A5ACC
secondary
#CBD8AA
accent
#DC4CB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7A5ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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