#7F5AE6#7F5AE6

#7F5AE6 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.0% C 0.202 H 290.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7F5AE6
RGBrgb(127, 90, 230)
HSLhsl(256, 74%, 63%)
HSVhsv(256, 61%, 90%)
CMYKcmyk(44.8%, 60.9%, 0%, 9.8%)
CIE-LABlab(48.93, 47.54, -66.11)
CIE-LCHlch(48.93, 81.43, 305.72°)
OKLaboklab(57.99% 0.0722 -0.1888)
OKLCHoklch(57.99% 0.202 290.9)
XYZxyz(26.6875, 17.5366, 76.8263)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AE6 #C1E65A
analogous
#5A7BE6 #7F5AE6 #C55AE6
triadic
#7F5AE6 #E67F5A #5AE67F
tetradic
#7F5AE6 #E65A7B #C1E65A #5AE6C5
square
#7F5AE6 #E65A7B #C1E65A #5AE6C5
split-complementary
#7F5AE6 #E6C55A #7BE65A
monochromatic
#401AAC #5625DE #7F5AE6 #A88FEE #D1C4F6

Accessibility & contrast

On white

4.66
#7F5AE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7F5AE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AE6
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AE6#FFFFFF#000000##FFFFFF
##7F5AE61.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#0071E3
Tritanopia (blue-blind)
#607A98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5ae6;
/* rgb */ color: rgb(127, 90, 230);
/* oklch */ color: oklch(58.0% 0.202 290.9);
Tailwind
colors: {
  custom: {
    50: '#ab8aef',
    500: '#7f5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ae6;
$custom-light: #ab8aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ae6",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 255.857,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57993,
    "c": 0.20216,
    "h": 290.9
  },
  "luminance": 0.17538
}

Semantic roles & 50–950 ramp

primary
#7F5AE6
secondary
#DAE7B5
accent
#D610A1
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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