#7F51EC#7F51EC

#7F51EC is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 57.1% C 0.221 H 291.5°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7F51EC
RGBrgb(127, 81, 236)
HSLhsl(258, 80%, 62%)
HSVhsv(258, 66%, 93%)
CMYKcmyk(46.2%, 65.7%, 0%, 7.5%)
CIE-LABlab(47.56, 54.02, -71.71)
CIE-LCHlch(47.56, 89.78, 306.99°)
OKLaboklab(57.14% 0.0808 -0.2053)
OKLCHoklch(57.14% 0.221 291.5)
XYZxyz(26.8309, 16.4521, 81.1025)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F51EC #BEEC51
analogous
#5171EC #7F51EC #CC51EC
triadic
#7F51EC #EC7F51 #51EC7F
tetradic
#7F51EC #EC5171 #BEEC51 #51ECCC
square
#7F51EC #EC5171 #BEEC51 #51ECCC
split-complementary
#7F51EC #ECCC51 #71EC51
monochromatic
#4213AF #561AE6 #7F51EC #A888F2 #D0BFF8

Accessibility & contrast

On white

4.89
#7F51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7F51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F51EC
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F51EC#FFFFFF#000000##FFFFFF
##7F51EC1.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#5D7798
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f51ec;
/* rgb */ color: rgb(127, 81, 236);
/* oklch */ color: oklch(57.1% 0.221 291.5);
Tailwind
colors: {
  custom: {
    50: '#ac85f3',
    500: '#7f51ec',
    950: '#000000',
  },
}
SCSS
$custom: #7f51ec;
$custom-light: #ac85f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f51ec",
  "rgb": {
    "r": 127,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 257.806,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57138,
    "c": 0.22064,
    "h": 291.5
  },
  "luminance": 0.16453
}

Semantic roles & 50–950 ramp

primary
#7F51EC
secondary
#D8E9B0
accent
#DD099E
background
#FBF8FF
surface
#F6EFFE
border
#D0CAD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7F51EC

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

Preview Lab → · Contrast checker → · Palette generator →

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