#7E51EA#7E51EA

#7E51EA is a mid, highly saturated violet. Relative luminance 0.163; OKLCH L 56.9% C 0.218 H 291.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E51EA
RGBrgb(126, 81, 234)
HSLhsl(258, 78%, 62%)
HSVhsv(258, 65%, 92%)
CMYKcmyk(46.2%, 65.4%, 0%, 8.2%)
CIE-LABlab(47.31, 53.30, -70.99)
CIE-LCHlch(47.31, 88.77, 306.90°)
OKLaboklab(56.89% 0.0797 -0.2032)
OKLCHoklch(56.89% 0.218 291.4)
XYZxyz(26.3937, 16.2601, 79.5738)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51EA #BDEA51
analogous
#5171EA #7E51EA #CB51EA
triadic
#7E51EA #EA7E51 #51EA7E
tetradic
#7E51EA #EA5171 #BDEA51 #51EACB
square
#7E51EA #EA5171 #BDEA51 #51EACB
split-complementary
#7E51EA #EACB51 #71EA51
monochromatic
#4115AC #561BE2 #7E51EA #A688F1 #CFBEF7

Accessibility & contrast

On white

4.94
#7E51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7E51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51EA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51EA#FFFFFF#000000##FFFFFF
##7E51EA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e51ea;
/* rgb */ color: rgb(126, 81, 234);
/* oklch */ color: oklch(56.9% 0.218 291.4);
Tailwind
colors: {
  custom: {
    50: '#ab84f2',
    500: '#7e51ea',
    950: '#000000',
  },
}
SCSS
$custom: #7e51ea;
$custom-light: #ab84f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51ea",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 257.647,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.5689,
    "c": 0.2183,
    "h": 291.4
  },
  "luminance": 0.16261
}

Semantic roles & 50–950 ramp

primary
#7E51EA
secondary
#D7E8AF
accent
#DB0B9E
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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