#7E56CD#7E56CD

#7E56CD is a mid, vivid violet. Relative luminance 0.155; OKLCH L 55.5% C 0.177 H 295.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7E56CD
RGBrgb(126, 86, 205)
HSLhsl(260, 54%, 57%)
HSVhsv(260, 58%, 80%)
CMYKcmyk(38.5%, 58%, 0%, 19.6%)
CIE-LABlab(46.31, 42.77, -56.11)
CIE-LCHlch(46.31, 70.55, 307.32°)
OKLaboklab(55.52% 0.0763 -0.1595)
OKLCHoklch(55.52% 0.177 295.6)
XYZxyz(22.9486, 15.4985, 59.5282)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56CD #A5CD56
analogous
#566ACD #7E56CD #BA56CD
triadic
#7E56CD #CD7E56 #56CD7E
tetradic
#7E56CD #CD566A #A5CD56 #56CDBA
square
#7E56CD #CD566A #A5CD56 #56CDBA
split-complementary
#7E56CD #CDBA56 #6ACD56
monochromatic
#452682 #5E34B1 #7E56CD #A285DB #C6B4E9

Accessibility & contrast

On white

5.12
#7E56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7E56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56CD
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56CD#FFFFFF#000000##FFFFFF
##7E56CD1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6FD1
Deuteranopia (green-blind)
#246CCA
Tritanopia (blue-blind)
#6B6F89
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7e56cd;
/* rgb */ color: rgb(126, 86, 205);
/* oklch */ color: oklch(55.5% 0.177 295.6);
Tailwind
colors: {
  custom: {
    50: '#a887dd',
    500: '#7e56cd',
    950: '#000000',
  },
}
SCSS
$custom: #7e56cd;
$custom-light: #a887dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56cd",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 260.168,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55521,
    "c": 0.17679,
    "h": 295.6
  },
  "luminance": 0.15499
}

Semantic roles & 50–950 ramp

primary
#7E56CD
secondary
#C7D8A7
accent
#DE4AAC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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