#7F5AE3#7F5AE3

#7F5AE3 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.8% C 0.198 H 291.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7F5AE3
RGBrgb(127, 90, 227)
HSLhsl(256, 71%, 62%)
HSVhsv(256, 60%, 89%)
CMYKcmyk(44.1%, 60.4%, 0%, 11%)
CIE-LABlab(48.72, 46.72, -64.75)
CIE-LCHlch(48.72, 79.84, 305.81°)
OKLaboklab(57.78% 0.0723 -0.1848)
OKLCHoklch(57.78% 0.198 291.4)
XYZxyz(26.2698, 17.3695, 74.6267)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AE3 #BEE35A
analogous
#5A7AE3 #7F5AE3 #C35AE3
triadic
#7F5AE3 #E37F5A #5AE37F
tetradic
#7F5AE3 #E35A7A #BEE35A #5AE3C3
square
#7F5AE3 #E35A7A #BEE35A #5AE3C3
split-complementary
#7F5AE3 #E3C35A #7AE35A
monochromatic
#421CA6 #5626DA #7F5AE3 #A88EEC #D0C3F5

Accessibility & contrast

On white

4.69
#7F5AE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7F5AE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F5AE3
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AE3#FFFFFF#000000##FFFFFF
##7F5AE31.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0071E0
Tritanopia (blue-blind)
#627996
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7f5ae3;
/* rgb */ color: rgb(127, 90, 227);
/* oklch */ color: oklch(57.8% 0.198 291.4);
Tailwind
colors: {
  custom: {
    50: '#ab8aed',
    500: '#7f5ae3',
    950: '#000000',
  },
}
SCSS
$custom: #7f5ae3;
$custom-light: #ab8aed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5ae3",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 227
  },
  "hsl": {
    "h": 256.204,
    "s": 70.984,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57776,
    "c": 0.19849,
    "h": 291.4
  },
  "luminance": 0.1737
}

Semantic roles & 50–950 ramp

primary
#7F5AE3
secondary
#D8E6B3
accent
#D3129F
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7F5AE3

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

Preview Lab → · Contrast checker → · Palette generator →

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