#7F5AF7#7F5AF7

#7F5AF7 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.3% C 0.223 H 288.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7F5AF7
RGBrgb(127, 90, 247)
HSLhsl(254, 91%, 66%)
HSVhsv(254, 64%, 97%)
CMYKcmyk(48.6%, 63.6%, 0%, 3.1%)
CIE-LABlab(50.14, 52.25, -73.67)
CIE-LCHlch(50.14, 90.32, 305.35°)
OKLaboklab(59.26% 0.0708 -0.2111)
OKLCHoklch(59.26% 0.223 288.5)
XYZxyz(29.1922, 18.5385, 90.0178)
Luminance0.1854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AF7 #D2F75A
analogous
#5A83F7 #7F5AF7 #CD5AF7
triadic
#7F5AF7 #F77F5A #5AF77F
tetradic
#7F5AF7 #F75A83 #D2F75A #5AF7CD
square
#7F5AF7 #F75A83 #D2F75A #5AF7CD
split-complementary
#7F5AF7 #F7CD5A #83F75A
monochromatic
#380ACD #5220F4 #7F5AF7 #AC94FA #DACFFD

Accessibility & contrast

On white

4.46
#7F5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#7F5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AF7
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AF7#FFFFFF#000000##000000
##7F5AF71.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFC
Deuteranopia (green-blind)
#0073F4
Tritanopia (blue-blind)
#5680A1
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7f5af7;
/* rgb */ color: rgb(127, 90, 247);
/* oklch */ color: oklch(59.3% 0.223 288.5);
Tailwind
colors: {
  custom: {
    50: '#ad8bfb',
    500: '#7f5af7',
    950: '#000000',
  },
}
SCSS
$custom: #7f5af7;
$custom-light: #ad8bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5af7",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 254.14,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59256,
    "c": 0.22264,
    "h": 288.5
  },
  "luminance": 0.1854
}

Semantic roles & 50–950 ramp

primary
#7F5AF7
secondary
#E4F0BD
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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