#7F5AE4#7F5AE4

#7F5AE4 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.8% C 0.200 H 291.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7F5AE4
RGBrgb(127, 90, 228)
HSLhsl(256, 72%, 62%)
HSVhsv(256, 61%, 89%)
CMYKcmyk(44.3%, 60.5%, 0%, 10.6%)
CIE-LABlab(48.79, 46.99, -65.20)
CIE-LCHlch(48.79, 80.37, 305.78°)
OKLaboklab(57.85% 0.0723 -0.1862)
OKLCHoklch(57.85% 0.2 291.2)
XYZxyz(26.4083, 17.4249, 75.3557)
Luminance0.1743 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AE4 #BFE45A
analogous
#5A7AE4 #7F5AE4 #C45AE4
triadic
#7F5AE4 #E47F5A #5AE47F
tetradic
#7F5AE4 #E45A7A #BFE45A #5AE4C4
square
#7F5AE4 #E45A7A #BFE45A #5AE4C4
split-complementary
#7F5AE4 #E4C45A #7AE45A
monochromatic
#411CA8 #5625DB #7F5AE4 #A88FED #D1C3F5

Accessibility & contrast

On white

4.68
#7F5AE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#7F5AE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AE4
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AE4#FFFFFF#000000##FFFFFF
##7F5AE41.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#617A97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5ae4;
/* rgb */ color: rgb(127, 90, 228);
/* oklch */ color: oklch(57.8% 0.200 291.2);
Tailwind
colors: {
  custom: {
    50: '#ab8aed',
    500: '#7f5ae4',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ae4;
$custom-light: #ab8aed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ae4",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 228
  },
  "hsl": {
    "h": 256.087,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57848,
    "c": 0.19972,
    "h": 291.2
  },
  "luminance": 0.17426
}

Semantic roles & 50–950 ramp

primary
#7F5AE4
secondary
#D9E6B4
accent
#D412A0
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5AE4

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

Preview Lab → · Contrast checker → · Palette generator →

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