#7F50E4#7F50E4

#7F50E4 is a mid, highly saturated violet. Relative luminance 0.159; OKLCH L 56.4% C 0.213 H 292.9°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#7F50E4
RGBrgb(127, 80, 228)
HSLhsl(259, 73%, 60%)
HSVhsv(259, 65%, 89%)
CMYKcmyk(44.3%, 64.9%, 0%, 10.6%)
CIE-LABlab(46.78, 52.40, -68.47)
CIE-LCHlch(46.78, 86.22, 307.43°)
OKLaboklab(56.39% 0.0828 -0.1958)
OKLCHoklch(56.39% 0.213 292.9)
XYZxyz(25.6208, 15.8500, 75.0932)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F50E4 #B5E450
analogous
#506BE4 #7F50E4 #C950E4
triadic
#7F50E4 #E47F50 #50E47F
tetradic
#7F50E4 #E4506B #B5E450 #50E4C9
square
#7F50E4 #E4506B #B5E450 #50E4C9
split-complementary
#7F50E4 #E4C950 #6BE450
monochromatic
#4419A1 #5A21D6 #7F50E4 #A685EC #CDBAF4

Accessibility & contrast

On white

5.04
#7F50E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#7F50E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F50E4
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F50E4#FFFFFF#000000##FFFFFF
##7F50E41.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071E9
Deuteranopia (green-blind)
#006CE1
Tritanopia (blue-blind)
#627393
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7f50e4;
/* rgb */ color: rgb(127, 80, 228);
/* oklch */ color: oklch(56.4% 0.213 292.9);
Tailwind
colors: {
  custom: {
    50: '#ab84ed',
    500: '#7f50e4',
    950: '#000000',
  },
}
SCSS
$custom: #7f50e4;
$custom-light: #ab84ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7f50e4",
  "rgb": {
    "r": 127,
    "g": 80,
    "b": 228
  },
  "hsl": {
    "h": 259.054,
    "s": 73.267,
    "l": 60.392
  },
  "oklch": {
    "l": 0.56387,
    "c": 0.21256,
    "h": 292.9
  },
  "luminance": 0.15851
}

Semantic roles & 50–950 ramp

primary
#7F50E4
secondary
#D2E4AC
accent
#D51097
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7F50E4

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

Preview Lab → · Contrast checker → · Palette generator →

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