#7F51EE#7F51EE

#7F51EE is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.3% C 0.223 H 291.2°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7F51EE
RGBrgb(127, 81, 238)
HSLhsl(258, 82%, 63%)
HSVhsv(258, 66%, 93%)
CMYKcmyk(46.6%, 66%, 0%, 6.7%)
CIE-LABlab(47.71, 54.56, -72.59)
CIE-LCHlch(47.71, 90.81, 306.93°)
OKLaboklab(57.29% 0.0805 -0.2079)
OKLCHoklch(57.29% 0.223 291.2)
XYZxyz(27.1231, 16.5689, 82.6414)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51EE #C0EE51
analogous
#5171EE #7F51EE #CE51EE
triadic
#7F51EE #EE7F51 #51EE7F
tetradic
#7F51EE #EE5171 #C0EE51 #51EECE
square
#7F51EE #EE5171 #C0EE51 #51EECE
split-complementary
#7F51EE #EECE51 #71EE51
monochromatic
#4111B3 #5619E9 #7F51EE #A889F3 #D1C1F9

Accessibility & contrast

On white

4.87
#7F51EE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7F51EE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51EE
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51EE#FFFFFF#000000##FFFFFF
##7F51EE1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074F3
Deuteranopia (green-blind)
#006EEB
Tritanopia (blue-blind)
#5C7899
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f51ee;
/* rgb */ color: rgb(127, 81, 238);
/* oklch */ color: oklch(57.3% 0.223 291.2);
Tailwind
colors: {
  custom: {
    50: '#ac85f5',
    500: '#7f51ee',
    950: '#000000',
  },
}
SCSS
$custom: #7f51ee;
$custom-light: #ac85f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51ee",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 238
  },
  "hsl": {
    "h": 257.58,
    "s": 82.199,
    "l": 62.549
  },
  "oklch": {
    "l": 0.57293,
    "c": 0.22294,
    "h": 291.2
  },
  "luminance": 0.1657
}

Semantic roles & 50–950 ramp

primary
#7F51EE
secondary
#D9EAB1
accent
#DF079F
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F51EE

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

Preview Lab → · Contrast checker → · Palette generator →

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