#7F50EC#7F50EC

#7F50EC is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 57.0% C 0.222 H 291.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#7F50EC
RGBrgb(127, 80, 236)
HSLhsl(258, 80%, 62%)
HSVhsv(258, 66%, 93%)
CMYKcmyk(46.2%, 66.1%, 0%, 7.5%)
CIE-LABlab(47.37, 54.54, -72.02)
CIE-LCHlch(47.37, 90.34, 307.14°)
OKLaboklab(57% 0.0818 -0.2062)
OKLCHoklch(57% 0.222 291.6)
XYZxyz(26.7571, 16.3045, 81.0779)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F50EC #BDEC50
analogous
#506FEC #7F50EC #CD50EC
triadic
#7F50EC #EC7F50 #50EC7F
tetradic
#7F50EC #EC506F #BDEC50 #50ECCD
square
#7F50EC #EC506F #BDEC50 #50ECCD
split-complementary
#7F50EC #ECCD50 #6FEC50
monochromatic
#4213AF #5719E6 #7F50EC #A787F2 #D0BEF8

Accessibility & contrast

On white

4.93
#7F50EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#7F50EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F50EC
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F50EC#FFFFFF#000000##FFFFFF
##7F50EC1.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006DE9
Tritanopia (blue-blind)
#5D7697
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7f50ec;
/* rgb */ color: rgb(127, 80, 236);
/* oklch */ color: oklch(57.0% 0.222 291.6);
Tailwind
colors: {
  custom: {
    50: '#ac84f3',
    500: '#7f50ec',
    950: '#000000',
  },
}
SCSS
$custom: #7f50ec;
$custom-light: #ac84f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f50ec",
  "rgb": {
    "r": 127,
    "g": 80,
    "b": 236
  },
  "hsl": {
    "h": 258.077,
    "s": 80.412,
    "l": 61.961
  },
  "oklch": {
    "l": 0.57001,
    "c": 0.22184,
    "h": 291.6
  },
  "luminance": 0.16305
}

Semantic roles & 50–950 ramp

primary
#7F50EC
secondary
#D7E9AF
accent
#DD099D
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F50EC

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

Preview Lab → · Contrast checker → · Palette generator →

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