#7E56BD#7E56BD

#7E56BD is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.5% C 0.157 H 299.0°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#7E56BD
RGBrgb(126, 86, 189)
HSLhsl(263, 44%, 54%)
HSVhsv(263, 54%, 74%)
CMYKcmyk(33.3%, 54.5%, 0%, 25.9%)
CIE-LABlab(45.31, 38.55, -48.46)
CIE-LCHlch(45.31, 61.92, 308.50°)
OKLaboklab(54.47% 0.0761 -0.137)
OKLCHoklch(54.47% 0.157 299)
XYZxyz(21.1151, 14.7651, 49.8718)
Luminance0.1477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56BD #95BD56
analogous
#5662BD #7E56BD #B256BD
triadic
#7E56BD #BD7E56 #56BD7E
tetradic
#7E56BD #BD5662 #95BD56 #56BDB2
square
#7E56BD #BD5662 #95BD56 #56BDB2
split-complementary
#7E56BD #BDB256 #62BD56
monochromatic
#452B6E #603C9A #7E56BD #A082CE #C1AEDF

Accessibility & contrast

On white

5.31
#7E56BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#7E56BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56BD
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56BD#FFFFFF#000000##FFFFFF
##7E56BD1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BC0
Deuteranopia (green-blind)
#396ABB
Tritanopia (blue-blind)
#716A81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7e56bd;
/* rgb */ color: rgb(126, 86, 189);
/* oklch */ color: oklch(54.5% 0.157 299.0);
Tailwind
colors: {
  custom: {
    50: '#a787d1',
    500: '#7e56bd',
    950: '#000000',
  },
}
SCSS
$custom: #7e56bd;
$custom-light: #a787d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56bd",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 189
  },
  "hsl": {
    "h": 263.301,
    "s": 43.83,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54465,
    "c": 0.15673,
    "h": 299
  },
  "luminance": 0.14765
}

Semantic roles & 50–950 ramp

primary
#7E56BD
secondary
#BCCDA1
accent
#D454A2
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7E56BD

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

Preview Lab → · Contrast checker → · Palette generator →

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