#7F5AF6#7F5AF6

#7F5AF6 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.2% C 0.221 H 288.7°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7F5AF6
RGBrgb(127, 90, 246)
HSLhsl(254, 90%, 66%)
HSVhsv(254, 63%, 96%)
CMYKcmyk(48.4%, 63.4%, 0%, 3.5%)
CIE-LABlab(50.07, 51.97, -73.23)
CIE-LCHlch(50.07, 89.80, 305.36°)
OKLaboklab(59.18% 0.0709 -0.2098)
OKLCHoklch(59.18% 0.221 288.7)
XYZxyz(29.0383, 18.4769, 89.2073)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AF6 #D1F65A
analogous
#5A83F6 #7F5AF6 #CD5AF6
triadic
#7F5AF6 #F67F5A #5AF67F
tetradic
#7F5AF6 #F65A83 #D1F65A #5AF6CD
square
#7F5AF6 #F65A83 #D1F65A #5AF6CD
split-complementary
#7F5AF6 #F6CD5A #83F65A
monochromatic
#380BCB #5220F3 #7F5AF6 #AC94F9 #D9CEFC

Accessibility & contrast

On white

4.47
#7F5AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7F5AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AF6
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AF6#FFFFFF#000000##000000
##7F5AF61.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#5680A0
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5af6;
/* rgb */ color: rgb(127, 90, 246);
/* oklch */ color: oklch(59.2% 0.221 288.7);
Tailwind
colors: {
  custom: {
    50: '#ad8bfa',
    500: '#7f5af6',
    950: '#000000',
  },
}
SCSS
$custom: #7f5af6;
$custom-light: #ad8bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5af6",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 254.231,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5918,
    "c": 0.22145,
    "h": 288.7
  },
  "luminance": 0.18478
}

Semantic roles & 50–950 ramp

primary
#7F5AF6
secondary
#E3F0BC
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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