#7C5AAA#7C5AAA

#7C5AAA is a mid, vivid violet. Relative luminance 0.145; OKLCH L 53.8% C 0.125 H 302.0°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#7C5AAA
RGBrgb(124, 90, 170)
HSLhsl(266, 32%, 51%)
HSVhsv(266, 47%, 67%)
CMYKcmyk(27.1%, 47.1%, 0%, 33.3%)
CIE-LABlab(44.94, 30.81, -37.94)
CIE-LCHlch(44.94, 48.88, 309.08°)
OKLaboklab(53.79% 0.0664 -0.1063)
OKLCHoklch(53.79% 0.125 302)
XYZxyz(19.2224, 14.4997, 39.8084)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AAA #88AA5A
analogous
#5A60AA #7C5AAA #A45AAA
triadic
#7C5AAA #AA7C5A #5AAA7C
tetradic
#7C5AAA #AA5A60 #88AA5A #5AAAA4
square
#7C5AAA #AA5A60 #88AA5A #5AAAA4
split-complementary
#7C5AAA #AAA45A #60AA5A
monochromatic
#412F5B #5F4483 #7C5AAA #9C82BF #BCABD4

Accessibility & contrast

On white

5.38
#7C5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7C5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5AAA
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AAA#FFFFFF#000000##FFFFFF
##7C5AAA1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#436AAD
Deuteranopia (green-blind)
#4B6AA8
Tritanopia (blue-blind)
#74687A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7c5aaa;
/* rgb */ color: rgb(124, 90, 170);
/* oklch */ color: oklch(53.8% 0.125 302.0);
Tailwind
colors: {
  custom: {
    50: '#a489c3',
    500: '#7c5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7c5aaa;
$custom-light: #a489c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5aaa",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 265.5,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53794,
    "c": 0.12534,
    "h": 302
  },
  "luminance": 0.145
}

Semantic roles & 50–950 ramp

primary
#7C5AAA
secondary
#B3C29E
accent
#C8609C
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7C5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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