#7F5AEF#7F5AEF

#7F5AEF is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.7% C 0.213 H 289.6°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#7F5AEF
RGBrgb(127, 90, 239)
HSLhsl(255, 82%, 65%)
HSVhsv(255, 62%, 94%)
CMYKcmyk(46.9%, 62.3%, 0%, 6.3%)
CIE-LABlab(49.56, 50.03, -70.14)
CIE-LCHlch(49.56, 86.15, 305.50°)
OKLaboklab(58.65% 0.0715 -0.2007)
OKLCHoklch(58.65% 0.213 289.6)
XYZxyz(27.9841, 18.0553, 83.6551)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AEF #CAEF5A
analogous
#5A80EF #7F5AEF #C95AEF
triadic
#7F5AEF #EF7F5A #5AEF7F
tetradic
#7F5AEF #EF5A80 #CAEF5A #5AEFC9
square
#7F5AEF #EF5A80 #CAEF5A #5AEFC9
split-complementary
#7F5AEF #EFC95A #80EF5A
monochromatic
#3C12BC #5422EA #7F5AEF #AA92F4 #D6CAFA

Accessibility & contrast

On white

4.55
#7F5AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#7F5AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AEF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AEF#FFFFFF#000000##000000
##7F5AEF1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f5aef;
/* rgb */ color: rgb(127, 90, 239);
/* oklch */ color: oklch(58.7% 0.213 289.6);
Tailwind
colors: {
  custom: {
    50: '#ac8af5',
    500: '#7f5aef',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aef;
$custom-light: #ac8af5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aef",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 254.899,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58654,
    "c": 0.21306,
    "h": 289.6
  },
  "luminance": 0.18056
}

Semantic roles & 50–950 ramp

primary
#7F5AEF
secondary
#DFECB9
accent
#DF07A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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