#7A56EA#7A56EA

#7A56EA is a mid, highly saturated violet. Relative luminance 0.167; OKLCH L 57.2% C 0.212 H 289.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7A56EA
RGBrgb(122, 86, 234)
HSLhsl(255, 78%, 63%)
HSVhsv(255, 63%, 92%)
CMYKcmyk(47.9%, 63.2%, 0%, 8.2%)
CIE-LABlab(47.92, 49.89, -70.02)
CIE-LCHlch(47.92, 85.97, 305.47°)
OKLaboklab(57.24% 0.0694 -0.2005)
OKLCHoklch(57.24% 0.212 289.1)
XYZxyz(26.2008, 16.7326, 79.6751)
Luminance0.1673 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56EA #C6EA56
analogous
#567CEA #7A56EA #C456EA
triadic
#7A56EA #EA7A56 #56EA7A
tetradic
#7A56EA #EA567C #C6EA56 #56EAC4
square
#7A56EA #EA567C #C6EA56 #56EAC4
split-complementary
#7A56EA #EAC456 #7CEA56
monochromatic
#3B16B0 #4F20E3 #7A56EA #A58CF1 #D0C3F8

Accessibility & contrast

On white

4.83
#7A56EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7A56EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56EA
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56EA#FFFFFF#000000##FFFFFF
##7A56EA1.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075EF
Deuteranopia (green-blind)
#006EE7
Tritanopia (blue-blind)
#557998
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a56ea;
/* rgb */ color: rgb(122, 86, 234);
/* oklch */ color: oklch(57.2% 0.212 289.1);
Tailwind
colors: {
  custom: {
    50: '#a987f2',
    500: '#7a56ea',
    950: '#000000',
  },
}
SCSS
$custom: #7a56ea;
$custom-light: #a987f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56ea",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 234
  },
  "hsl": {
    "h": 254.595,
    "s": 77.895,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57238,
    "c": 0.21218,
    "h": 289.1
  },
  "luminance": 0.16734
}

Semantic roles & 50–950 ramp

primary
#7A56EA
secondary
#DCE9B3
accent
#DA0BA8
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A56EA

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

Preview Lab → · Contrast checker → · Palette generator →

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