#7F5AE5#7F5AE5

#7F5AE5 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 57.9% C 0.201 H 291.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7F5AE5
RGBrgb(127, 90, 229)
HSLhsl(256, 73%, 63%)
HSVhsv(256, 61%, 90%)
CMYKcmyk(44.5%, 60.7%, 0%, 10.2%)
CIE-LABlab(48.86, 47.27, -65.65)
CIE-LCHlch(48.86, 80.90, 305.75°)
OKLaboklab(57.92% 0.0722 -0.1875)
OKLCHoklch(57.92% 0.201 291.1)
XYZxyz(26.5475, 17.4806, 76.0889)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AE5 #C0E55A
analogous
#5A7BE5 #7F5AE5 #C45AE5
triadic
#7F5AE5 #E57F5A #5AE57F
tetradic
#7F5AE5 #E55A7B #C0E55A #5AE5C4
square
#7F5AE5 #E55A7B #C0E55A #5AE5C4
split-complementary
#7F5AE5 #E5C45A #7BE55A
monochromatic
#411BAA #5625DD #7F5AE5 #A88FED #D1C4F6

Accessibility & contrast

On white

4.67
#7F5AE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7F5AE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AE5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AE5#FFFFFF#000000##FFFFFF
##7F5AE51.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5ae5;
/* rgb */ color: rgb(127, 90, 229);
/* oklch */ color: oklch(57.9% 0.201 291.1);
Tailwind
colors: {
  custom: {
    50: '#ab8aee',
    500: '#7f5ae5',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ae5;
$custom-light: #ab8aee;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ae5",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 229
  },
  "hsl": {
    "h": 255.971,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5792,
    "c": 0.20094,
    "h": 291.1
  },
  "luminance": 0.17481
}

Semantic roles & 50–950 ramp

primary
#7F5AE5
secondary
#D9E7B4
accent
#D511A1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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