#7E56FD#7E56FD

#7E56FD is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 59.1% C 0.234 H 288.0°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7E56FD
RGBrgb(126, 86, 253)
HSLhsl(254, 98%, 66%)
HSVhsv(254, 66%, 99%)
CMYKcmyk(50.2%, 66%, 0%, 0.8%)
CIE-LABlab(49.72, 55.87, -77.71)
CIE-LCHlch(49.72, 95.71, 305.71°)
OKLaboklab(59.07% 0.0725 -0.223)
OKLCHoklch(59.07% 0.234 288)
XYZxyz(29.6564, 18.1817, 94.8562)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56FD #D5FD56
analogous
#5682FD #7E56FD #D156FD
triadic
#7E56FD #FD7E56 #56FD7E
tetradic
#7E56FD #FD5682 #D5FD56 #56FDD1
square
#7E56FD #FD5682 #D5FD56 #56FDD1
split-complementary
#7E56FD #FDD156 #82FD56
monochromatic
#3503D6 #501AFC #7E56FD #AC92FE #DACFFE

Accessibility & contrast

On white

4.53
#7E56FD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#7E56FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E56FD
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56FD#FFFFFF#000000##000000
##7E56FD1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFF
Deuteranopia (green-blind)
#0072FA
Tritanopia (blue-blind)
#5080A3
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e56fd;
/* rgb */ color: rgb(126, 86, 253);
/* oklch */ color: oklch(59.1% 0.234 288.0);
Tailwind
colors: {
  custom: {
    50: '#ad88ff',
    500: '#7e56fd',
    950: '#000000',
  },
}
SCSS
$custom: #7e56fd;
$custom-light: #ad88ff;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56fd",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 253
  },
  "hsl": {
    "h": 254.371,
    "s": 97.661,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59067,
    "c": 0.23448,
    "h": 288
  },
  "luminance": 0.18183
}

Semantic roles & 50–950 ramp

primary
#7E56FD
secondary
#E6F2BC
accent
#E600AF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E56FD

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

Preview Lab → · Contrast checker → · Palette generator →

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