#7E51DF#7E51DF

#7E51DF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.1% C 0.205 H 293.2°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#7E51DF
RGBrgb(126, 81, 223)
HSLhsl(259, 69%, 60%)
HSVhsv(259, 64%, 87%)
CMYKcmyk(43.5%, 63.7%, 0%, 12.5%)
CIE-LABlab(46.51, 50.34, -66.07)
CIE-LCHlch(46.51, 83.06, 307.30°)
OKLaboklab(56.06% 0.0809 -0.1888)
OKLCHoklch(56.06% 0.205 293.2)
XYZxyz(24.8623, 15.6475, 71.5080)
Luminance0.1565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E51DF #B2DF51
analogous
#516BDF #7E51DF #C551DF
triadic
#7E51DF #DF7E51 #51DF7E
tetradic
#7E51DF #DF516B #B2DF51 #51DFC5
square
#7E51DF #DF516B #B2DF51 #51DFC5
split-complementary
#7E51DF #DFC551 #6BDF51
monochromatic
#441C99 #5B26CD #7E51DF #A485E9 #CBB8F2

Accessibility & contrast

On white

5.09
#7E51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7E51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E51DF
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E51DF#FFFFFF#000000##FFFFFF
##7E51DF1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006CDC
Tritanopia (blue-blind)
#637291
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e51df;
/* rgb */ color: rgb(126, 81, 223);
/* oklch */ color: oklch(56.1% 0.205 293.2);
Tailwind
colors: {
  custom: {
    50: '#aa84ea',
    500: '#7e51df',
    950: '#000000',
  },
}
SCSS
$custom: #7e51df;
$custom-light: #aa84ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7e51df",
  "rgb": {
    "r": 126,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 259.014,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56056,
    "c": 0.20539,
    "h": 293.2
  },
  "luminance": 0.15648
}

Semantic roles & 50–950 ramp

primary
#7E51DF
secondary
#D0E1AA
accent
#EC3CB4
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7E51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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