#7F5AFE#7F5AFE

#7F5AFE is a mid, highly saturated violet. Relative luminance 0.190; OKLCH L 59.8% C 0.231 H 287.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7F5AFE
RGBrgb(127, 90, 254)
HSLhsl(254, 99%, 67%)
HSVhsv(254, 65%, 100%)
CMYKcmyk(50%, 64.6%, 0%, 0.4%)
CIE-LABlab(50.66, 54.20, -76.72)
CIE-LCHlch(50.66, 93.93, 305.24°)
OKLaboklab(59.79% 0.07 -0.22)
OKLCHoklch(59.79% 0.231 287.7)
XYZxyz(30.2927, 18.9787, 95.8138)
Luminance0.1898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F5AFE #D9FE5A
analogous
#5A87FE #7F5AFE #D15AFE
triadic
#7F5AFE #FE7F5A #5AFE7F
tetradic
#7F5AFE #FE5A87 #D9FE5A #5AFED1
square
#7F5AFE #FE5A87 #D9FE5A #5AFED1
split-complementary
#7F5AFE #FED15A #87FE5A
monochromatic
#3301DC #501DFE #7F5AFE #AE97FE #DDD4FF

Accessibility & contrast

On white

4.38
#7F5AFE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#7F5AFE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7F5AFE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F5AFE#FFFFFF#000000##000000
##7F5AFE1.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0074FB
Tritanopia (blue-blind)
#5182A4
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7f5afe;
/* rgb */ color: rgb(127, 90, 254);
/* oklch */ color: oklch(59.8% 0.231 287.7);
Tailwind
colors: {
  custom: {
    50: '#ae8bff',
    500: '#7f5afe',
    950: '#000000',
  },
}
SCSS
$custom: #7f5afe;
$custom-light: #ae8bff;
$custom-dark: #000000;
JSON
{
  "hex": "#7f5afe",
  "rgb": {
    "r": 127,
    "g": 90,
    "b": 254
  },
  "hsl": {
    "h": 253.537,
    "s": 98.795,
    "l": 67.451
  },
  "oklch": {
    "l": 0.59794,
    "c": 0.23092,
    "h": 287.7
  },
  "luminance": 0.1898
}

Semantic roles & 50–950 ramp

primary
#7F5AFE
secondary
#E8F4C0
accent
#E600B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7F5AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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