#7F5AAA#7F5AAA

#7F5AAA is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.1% C 0.126 H 303.8°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#7F5AAA
RGBrgb(127, 90, 170)
HSLhsl(268, 32%, 51%)
HSVhsv(268, 47%, 67%)
CMYKcmyk(25.3%, 47.1%, 0%, 33.3%)
CIE-LABlab(45.26, 31.67, -37.42)
CIE-LCHlch(45.26, 49.02, 310.25°)
OKLaboklab(54.1% 0.0702 -0.1047)
OKLCHoklch(54.1% 0.126 303.8)
XYZxyz(19.6627, 14.7267, 39.8291)
Luminance0.1473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AAA #85AA5A
analogous
#5A5DAA #7F5AAA #A75AAA
triadic
#7F5AAA #AA7F5A #5AAA7F
tetradic
#7F5AAA #AA5A5D #85AA5A #5AAAA7
square
#7F5AAA #AA5A5D #85AA5A #5AAAA7
split-complementary
#7F5AAA #AAA75A #5DAA5A
monochromatic
#432F5B #614483 #7F5AAA #9E82BF #BEABD4

Accessibility & contrast

On white

5.32
#7F5AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7F5AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AAA
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AAA#FFFFFF#000000##FFFFFF
##7F5AAA1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5aaa;
/* rgb */ color: rgb(127, 90, 170);
/* oklch */ color: oklch(54.1% 0.126 303.8);
Tailwind
colors: {
  custom: {
    50: '#a689c3',
    500: '#7f5aaa',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aaa;
$custom-light: #a689c3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aaa",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 267.75,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54104,
    "c": 0.12608,
    "h": 303.8
  },
  "luminance": 0.14727
}

Semantic roles & 50–950 ramp

primary
#7F5AAA
secondary
#B1C29E
accent
#C86098
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #7F5AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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