#7E56BF#7E56BF

#7E56BF is a mid, vivid violet. Relative luminance 0.149; OKLCH L 54.6% C 0.159 H 298.6°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#7E56BF
RGBrgb(126, 86, 191)
HSLhsl(263, 45%, 54%)
HSVhsv(263, 55%, 75%)
CMYKcmyk(34%, 55%, 0%, 25.1%)
CIE-LABlab(45.43, 39.07, -49.43)
CIE-LCHlch(45.43, 63.01, 308.33°)
OKLaboklab(54.59% 0.0762 -0.1399)
OKLCHoklch(54.59% 0.159 298.6)
XYZxyz(21.3336, 14.8526, 51.0230)
Luminance0.1485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56BF #97BF56
analogous
#5663BF #7E56BF #B256BF
triadic
#7E56BF #BF7E56 #56BF7E
tetradic
#7E56BF #BF5663 #97BF56 #56BFB2
square
#7E56BF #BF5663 #97BF56 #56BFB2
split-complementary
#7E56BF #BFB256 #63BF56
monochromatic
#452A70 #603B9D #7E56BF #A082D0 #C2AFE1

Accessibility & contrast

On white

5.29
#7E56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#7E56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56BF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56BF#FFFFFF#000000##FFFFFF
##7E56BF1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A6CC3
Deuteranopia (green-blind)
#376BBD
Tritanopia (blue-blind)
#706B82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7e56bf;
/* rgb */ color: rgb(126, 86, 191);
/* oklch */ color: oklch(54.6% 0.159 298.6);
Tailwind
colors: {
  custom: {
    50: '#a787d3',
    500: '#7e56bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e56bf;
$custom-light: #a787d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56bf",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 262.857,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54593,
    "c": 0.15926,
    "h": 298.6
  },
  "luminance": 0.14853
}

Semantic roles & 50–950 ramp

primary
#7E56BF
secondary
#BECFA2
accent
#D553A3
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7E56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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