#7F5AEB#7F5AEB

#7F5AEB is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.4% C 0.208 H 290.2°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7F5AEB
RGBrgb(127, 90, 235)
HSLhsl(255, 78%, 64%)
HSVhsv(255, 62%, 92%)
CMYKcmyk(46%, 61.7%, 0%, 7.8%)
CIE-LABlab(49.28, 48.92, -68.35)
CIE-LCHlch(49.28, 84.06, 305.59°)
OKLaboklab(58.36% 0.0718 -0.1955)
OKLCHoklch(58.36% 0.208 290.2)
XYZxyz(27.3997, 17.8215, 80.5774)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AEB #C6EB5A
analogous
#5A7DEB #7F5AEB #C75AEB
triadic
#7F5AEB #EB7F5A #5AEB7F
tetradic
#7F5AEB #EB5A7D #C6EB5A #5AEBC7
square
#7F5AEB #EB5A7D #C6EB5A #5AEBC7
split-complementary
#7F5AEB #EBC75A #7DEB5A
monochromatic
#3E16B5 #5523E4 #7F5AEB #A991F2 #D4C7F8

Accessibility & contrast

On white

4.60
#7F5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7F5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AEB
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AEB#FFFFFF#000000##FFFFFF
##7F5AEB1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#5D7C9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7f5aeb;
/* rgb */ color: rgb(127, 90, 235);
/* oklch */ color: oklch(58.4% 0.208 290.2);
Tailwind
colors: {
  custom: {
    50: '#ac8af2',
    500: '#7f5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #7f5aeb;
$custom-light: #ac8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5aeb",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 255.31,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58358,
    "c": 0.20823,
    "h": 290.2
  },
  "luminance": 0.17823
}

Semantic roles & 50–950 ramp

primary
#7F5AEB
secondary
#DDEAB7
accent
#DB0BA6
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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