#7F5AEE#7F5AEE

#7F5AEE is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.6% C 0.212 H 289.8°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F5AEE
RGBrgb(127, 90, 238)
HSLhsl(255, 81%, 64%)
HSVhsv(255, 62%, 93%)
CMYKcmyk(46.6%, 62.2%, 0%, 6.7%)
CIE-LABlab(49.49, 49.75, -69.69)
CIE-LCHlch(49.49, 85.63, 305.52°)
OKLaboklab(58.58% 0.0716 -0.1994)
OKLCHoklch(58.58% 0.212 289.8)
XYZxyz(27.8368, 17.9963, 82.8793)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AEE #C9EE5A
analogous
#5A7FEE #7F5AEE #C95AEE
triadic
#7F5AEE #EE7F5A #5AEE7F
tetradic
#7F5AEE #EE5A7F #C9EE5A #5AEEC9
square
#7F5AEE #EE5A7F #C9EE5A #5AEEC9
split-complementary
#7F5AEE #EEC95A #7FEE5A
monochromatic
#3D13BA #5423E8 #7F5AEE #AA91F4 #D5C9F9

Accessibility & contrast

On white

4.57
#7F5AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7F5AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AEE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AEE#FFFFFF#000000##000000
##7F5AEE1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0072EB
Tritanopia (blue-blind)
#5B7D9C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5aee;
/* rgb */ color: rgb(127, 90, 238);
/* oklch */ color: oklch(58.6% 0.212 289.8);
Tailwind
colors: {
  custom: {
    50: '#ac8af4',
    500: '#7f5aee',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aee;
$custom-light: #ac8af4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aee",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 255,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58579,
    "c": 0.21186,
    "h": 289.8
  },
  "luminance": 0.17997
}

Semantic roles & 50–950 ramp

primary
#7F5AEE
secondary
#DFECB8
accent
#DE08A8
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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