#7E5AAA#7E5AAA

#7E5AAA is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.0% C 0.126 H 303.2°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7E5AAA
RGBrgb(126, 90, 170)
HSLhsl(267, 32%, 51%)
HSVhsv(267, 47%, 67%)
CMYKcmyk(25.9%, 47.1%, 0%, 33.3%)
CIE-LABlab(45.15, 31.39, -37.59)
CIE-LCHlch(45.15, 48.97, 309.86°)
OKLaboklab(54% 0.0689 -0.1053)
OKLCHoklch(54% 0.126 303.2)
XYZxyz(19.5145, 14.6503, 39.8221)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AAA #86AA5A
analogous
#5A5EAA #7E5AAA #A65AAA
triadic
#7E5AAA #AA7E5A #5AAA7E
tetradic
#7E5AAA #AA5A5E #86AA5A #5AAAA6
square
#7E5AAA #AA5A5E #86AA5A #5AAAA6
split-complementary
#7E5AAA #AAA65A #5EAA5A
monochromatic
#432F5B #604483 #7E5AAA #9E82BF #BDABD4

Accessibility & contrast

On white

5.34
#7E5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7E5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5AAA
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AAA#FFFFFF#000000##FFFFFF
##7E5AAA1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#446AAD
Deuteranopia (green-blind)
#4C6BA8
Tritanopia (blue-blind)
#76687A
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e5aaa;
/* rgb */ color: rgb(126, 90, 170);
/* oklch */ color: oklch(54.0% 0.126 303.2);
Tailwind
colors: {
  custom: {
    50: '#a589c3',
    500: '#7e5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7e5aaa;
$custom-light: #a589c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5aaa",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 267,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54,
    "c": 0.12582,
    "h": 303.2
  },
  "luminance": 0.1465
}

Semantic roles & 50–950 ramp

primary
#7E5AAA
secondary
#B2C29E
accent
#C86099
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7E5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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