#7A56EC#7A56EC

#7A56EC is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.4% C 0.215 H 288.8°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#7A56EC
RGBrgb(122, 86, 236)
HSLhsl(254, 80%, 63%)
HSVhsv(254, 64%, 93%)
CMYKcmyk(48.3%, 63.6%, 0%, 7.5%)
CIE-LABlab(48.07, 50.44, -70.90)
CIE-LCHlch(48.07, 87.02, 305.43°)
OKLaboklab(57.39% 0.0693 -0.2031)
OKLCHoklch(57.39% 0.215 288.8)
XYZxyz(26.4898, 16.8482, 81.1969)
Luminance0.1685 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56EC #C8EC56
analogous
#567DEC #7A56EC #C556EC
triadic
#7A56EC #EC7A56 #56EC7A
tetradic
#7A56EC #EC567D #C8EC56 #56ECC5
square
#7A56EC #EC567D #C8EC56 #56ECC5
split-complementary
#7A56EC #ECC556 #7DEC56
monochromatic
#3A14B3 #4F1FE6 #7A56EC #A58DF2 #D1C4F8

Accessibility & contrast

On white

4.81
#7A56EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#7A56EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56EC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56EC#FFFFFF#000000##FFFFFF
##7A56EC1.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#006EE9
Tritanopia (blue-blind)
#537A99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a56ec;
/* rgb */ color: rgb(122, 86, 236);
/* oklch */ color: oklch(57.4% 0.215 288.8);
Tailwind
colors: {
  custom: {
    50: '#a987f3',
    500: '#7a56ec',
    950: '#000000',
  },
}
SCSS
$custom: #7a56ec;
$custom-light: #a987f3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56ec",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 236
  },
  "hsl": {
    "h": 254.4,
    "s": 79.787,
    "l": 63.137
  },
  "oklch": {
    "l": 0.5739,
    "c": 0.21459,
    "h": 288.8
  },
  "luminance": 0.16849
}

Semantic roles & 50–950 ramp

primary
#7A56EC
secondary
#DDEAB4
accent
#DC09AA
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A56EC

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

Preview Lab → · Contrast checker → · Palette generator →

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