#7E56ED#7E56ED

#7E56ED is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.8% C 0.216 H 290.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E56ED
RGBrgb(126, 86, 237)
HSLhsl(256, 81%, 63%)
HSVhsv(256, 64%, 93%)
CMYKcmyk(46.8%, 63.7%, 0%, 7.1%)
CIE-LABlab(48.52, 51.46, -70.72)
CIE-LCHlch(48.52, 87.46, 306.04°)
OKLaboklab(57.83% 0.0744 -0.2024)
OKLCHoklch(57.83% 0.216 290.2)
XYZxyz(27.2137, 17.2046, 81.9913)
Luminance0.1721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E56ED #C5ED56
analogous
#5679ED #7E56ED #C956ED
triadic
#7E56ED #ED7E56 #56ED7E
tetradic
#7E56ED #ED5679 #C5ED56 #56EDC9
square
#7E56ED #ED5679 #C5ED56 #56EDC9
split-complementary
#7E56ED #EDC956 #79ED56
monochromatic
#3E13B5 #541FE7 #7E56ED #A88DF3 #D2C5F9

Accessibility & contrast

On white

4.73
#7E56ED on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#7E56ED on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E56ED
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E56ED#FFFFFF#000000##FFFFFF
##7E56ED1.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F2
Deuteranopia (green-blind)
#0070EA
Tritanopia (blue-blind)
#5A7A9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e56ed;
/* rgb */ color: rgb(126, 86, 237);
/* oklch */ color: oklch(57.8% 0.216 290.2);
Tailwind
colors: {
  custom: {
    50: '#ab88f4',
    500: '#7e56ed',
    950: '#000000',
  },
}
SCSS
$custom: #7e56ed;
$custom-light: #ab88f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e56ed",
  "rgb": {
    "r": 126,
    "g": 86,
    "b": 237
  },
  "hsl": {
    "h": 255.894,
    "s": 80.749,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57827,
    "c": 0.21569,
    "h": 290.2
  },
  "luminance": 0.17206
}

Semantic roles & 50–950 ramp

primary
#7E56ED
secondary
#DCEAB4
accent
#DD08A5
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7E56ED

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

Preview Lab → · Contrast checker → · Palette generator →

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