#7E56CF#7E56CF

#7E56CF is a mid, vivid violet. Relative luminance 0.156; OKLCH L 55.7% C 0.179 H 295.2°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7E56CF
RGBrgb(126, 86, 207)
HSLhsl(260, 56%, 57%)
HSVhsv(260, 58%, 81%)
CMYKcmyk(39.1%, 58.5%, 0%, 18.8%)
CIE-LABlab(46.44, 43.30, -57.05)
CIE-LCHlch(46.44, 71.62, 307.20°)
OKLaboklab(55.66% 0.0763 -0.1622)
OKLCHoklch(55.66% 0.179 295.2)
XYZxyz(23.1915, 15.5957, 60.8078)
Luminance0.1560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56CF #A7CF56
analogous
#566ACF #7E56CF #BB56CF
triadic
#7E56CF #CF7E56 #56CF7E
tetradic
#7E56CF #CF566A #A7CF56 #56CFBB
square
#7E56CF #CF566A #A7CF56 #56CFBB
split-complementary
#7E56CF #CFBB56 #6ACF56
monochromatic
#452685 #5E33B5 #7E56CF #A286DD #C7B5EA

Accessibility & contrast

On white

5.10
#7E56CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#7E56CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56CF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56CF#FFFFFF#000000##FFFFFF
##7E56CF1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066FD3
Deuteranopia (green-blind)
#206CCC
Tritanopia (blue-blind)
#6A708A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e56cf;
/* rgb */ color: rgb(126, 86, 207);
/* oklch */ color: oklch(55.7% 0.179 295.2);
Tailwind
colors: {
  custom: {
    50: '#a887de',
    500: '#7e56cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e56cf;
$custom-light: #a887de;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56cf",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 259.835,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55658,
    "c": 0.17928,
    "h": 295.2
  },
  "luminance": 0.15596
}

Semantic roles & 50–950 ramp

primary
#7E56CF
secondary
#C9D9A8
accent
#DF49AD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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