#7F5AF1#7F5AF1

#7F5AF1 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.8% C 0.215 H 289.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7F5AF1
RGBrgb(127, 90, 241)
HSLhsl(255, 84%, 65%)
HSVhsv(255, 63%, 95%)
CMYKcmyk(47.3%, 62.7%, 0%, 5.5%)
CIE-LABlab(49.71, 50.58, -71.03)
CIE-LCHlch(49.71, 87.20, 305.46°)
OKLaboklab(58.8% 0.0714 -0.2033)
OKLCHoklch(58.8% 0.215 289.3)
XYZxyz(28.2812, 18.1741, 85.2198)
Luminance0.1817 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AF1 #CCF15A
analogous
#5A80F1 #7F5AF1 #CB5AF1
triadic
#7F5AF1 #F17F5A #5AF17F
tetradic
#7F5AF1 #F15A80 #CCF15A #5AF1CB
square
#7F5AF1 #F15A80 #CCF15A #5AF1CB
split-complementary
#7F5AF1 #F1CB5A #80F15A
monochromatic
#3B10C0 #5322EC #7F5AF1 #AB92F6 #D7CBFB

Accessibility & contrast

On white

4.53
#7F5AF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7F5AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AF1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AF1#FFFFFF#000000##000000
##7F5AF11.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F6
Deuteranopia (green-blind)
#0073EE
Tritanopia (blue-blind)
#5A7E9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7f5af1;
/* rgb */ color: rgb(127, 90, 241);
/* oklch */ color: oklch(58.8% 0.215 289.3);
Tailwind
colors: {
  custom: {
    50: '#ac8af7',
    500: '#7f5af1',
    950: '#000000',
  },
}
SCSS
$custom: #7f5af1;
$custom-light: #ac8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5af1",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 241
  },
  "hsl": {
    "h": 254.702,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58803,
    "c": 0.21547,
    "h": 289.3
  },
  "luminance": 0.18175
}

Semantic roles & 50–950 ramp

primary
#7F5AF1
secondary
#E1EDBA
accent
#E105AB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7F5AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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