#7E56F2#7E56F2

#7E56F2 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.2% C 0.222 H 289.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#7E56F2
RGBrgb(126, 86, 242)
HSLhsl(255, 86%, 64%)
HSVhsv(255, 64%, 95%)
CMYKcmyk(47.9%, 64.5%, 0%, 5.1%)
CIE-LABlab(48.89, 52.83, -72.93)
CIE-LCHlch(48.89, 90.05, 305.92°)
OKLaboklab(58.21% 0.0739 -0.2089)
OKLCHoklch(58.21% 0.222 289.5)
XYZxyz(27.9544, 17.5009, 85.8923)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56F2 #CAF256
analogous
#567CF2 #7E56F2 #CC56F2
triadic
#7E56F2 #F27E56 #56F27E
tetradic
#7E56F2 #F2567C #CAF256 #56F2CC
square
#7E56F2 #F2567C #CAF256 #56F2CC
split-complementary
#7E56F2 #F2CC56 #7CF256
monochromatic
#3C0FBF #531DEE #7E56F2 #A98FF6 #D5C8FB

Accessibility & contrast

On white

4.67
#7E56F2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7E56F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56F2
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56F2#FFFFFF#000000##FFFFFF
##7E56F21.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F7
Deuteranopia (green-blind)
#0070EF
Tritanopia (blue-blind)
#577C9D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e56f2;
/* rgb */ color: rgb(126, 86, 242);
/* oklch */ color: oklch(58.2% 0.222 289.5);
Tailwind
colors: {
  custom: {
    50: '#ac88f7',
    500: '#7e56f2',
    950: '#000000',
  },
}
SCSS
$custom: #7e56f2;
$custom-light: #ac88f7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56f2",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 242
  },
  "hsl": {
    "h": 255.385,
    "s": 85.714,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58209,
    "c": 0.22161,
    "h": 289.5
  },
  "luminance": 0.17502
}

Semantic roles & 50–950 ramp

primary
#7E56F2
secondary
#DFEDB7
accent
#E203A9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56F2

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

Preview Lab → · Contrast checker → · Palette generator →

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