#7E56F6#7E56F6

#7E56F6 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.5% C 0.226 H 288.9°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E56F6
RGBrgb(126, 86, 246)
HSLhsl(255, 90%, 65%)
HSVhsv(255, 65%, 96%)
CMYKcmyk(48.8%, 65%, 0%, 3.5%)
CIE-LABlab(49.18, 53.94, -74.68)
CIE-LCHlch(49.18, 92.12, 305.84°)
OKLaboklab(58.52% 0.0734 -0.2141)
OKLCHoklch(58.52% 0.226 288.9)
XYZxyz(28.5617, 17.7438, 89.0909)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56F6 #CEF656
analogous
#567EF6 #7E56F6 #CE56F6
triadic
#7E56F6 #F67E56 #56F67E
tetradic
#7E56F6 #F6567E #CEF656 #56F6CE
square
#7E56F6 #F6567E #CEF656 #56F6CE
split-complementary
#7E56F6 #F6CE56 #7EF656
monochromatic
#3A0BC7 #521CF3 #7E56F6 #AA90F9 #D7CAFC

Accessibility & contrast

On white

4.62
#7E56F6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7E56F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56F6
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56F6#FFFFFF#000000##FFFFFF
##7E56F61.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FB
Deuteranopia (green-blind)
#0071F3
Tritanopia (blue-blind)
#557D9F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e56f6;
/* rgb */ color: rgb(126, 86, 246);
/* oklch */ color: oklch(58.5% 0.226 288.9);
Tailwind
colors: {
  custom: {
    50: '#ac88fa',
    500: '#7e56f6',
    950: '#000000',
  },
}
SCSS
$custom: #7e56f6;
$custom-light: #ac88fa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56f6",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 246
  },
  "hsl": {
    "h": 255,
    "s": 89.888,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58518,
    "c": 0.22632,
    "h": 288.9
  },
  "luminance": 0.17745
}

Semantic roles & 50–950 ramp

primary
#7E56F6
secondary
#E1EFB9
accent
#E600AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56F6

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

Preview Lab → · Contrast checker → · Palette generator →

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