#7A56E4#7A56E4

#7A56E4 is a mid, highly saturated violet. Relative luminance 0.164; OKLCH L 56.8% C 0.205 H 290.0°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7A56E4
RGBrgb(122, 86, 228)
HSLhsl(255, 72%, 62%)
HSVhsv(255, 62%, 89%)
CMYKcmyk(46.5%, 62.3%, 0%, 10.6%)
CIE-LABlab(47.49, 48.21, -67.34)
CIE-LCHlch(47.49, 82.82, 305.60°)
OKLaboklab(56.79% 0.07 -0.1926)
OKLCHoklch(56.79% 0.205 290)
XYZxyz(25.3534, 16.3936, 75.2122)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56E4 #C0E456
analogous
#5679E4 #7A56E4 #C156E4
triadic
#7A56E4 #E47A56 #56E47A
tetradic
#7A56E4 #E45679 #C0E456 #56E4C1
square
#7A56E4 #E45679 #C0E456 #56E4C1
split-complementary
#7A56E4 #E4C156 #79E456
monochromatic
#3E1AA5 #5123DA #7A56E4 #A48BEC #CDC0F5

Accessibility & contrast

On white

4.91
#7A56E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#7A56E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56E4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56E4#FFFFFF#000000##FFFFFF
##7A56E41.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#006DE1
Tritanopia (blue-blind)
#587795
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a56e4;
/* rgb */ color: rgb(122, 86, 228);
/* oklch */ color: oklch(56.8% 0.205 290.0);
Tailwind
colors: {
  custom: {
    50: '#a887ed',
    500: '#7a56e4',
    950: '#000000',
  },
}
SCSS
$custom: #7a56e4;
$custom-light: #a887ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56e4",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 255.211,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.20493,
    "h": 290
  },
  "luminance": 0.16395
}

Semantic roles & 50–950 ramp

primary
#7A56E4
secondary
#D8E5B0
accent
#D511A3
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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