#7A56EF#7A56EF

#7A56EF is a mid, highly saturated violet. Relative luminance 0.170; OKLCH L 57.6% C 0.218 H 288.4°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7A56EF
RGBrgb(122, 86, 239)
HSLhsl(254, 83%, 64%)
HSVhsv(254, 64%, 94%)
CMYKcmyk(49%, 64%, 0%, 6.3%)
CIE-LABlab(48.29, 51.28, -72.23)
CIE-LCHlch(48.29, 88.58, 305.38°)
OKLaboklab(57.62% 0.0689 -0.207)
OKLCHoklch(57.62% 0.218 288.4)
XYZxyz(26.9293, 17.0240, 83.5116)
Luminance0.1703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56EF #CBEF56
analogous
#567EEF #7A56EF #C756EF
triadic
#7A56EF #EF7A56 #56EF7A
tetradic
#7A56EF #EF567E #CBEF56 #56EFC7
square
#7A56EF #EF567E #CBEF56 #56EFC7
split-complementary
#7A56EF #EFC756 #7EEF56
monochromatic
#3912B9 #4E1EEA #7A56EF #A68EF4 #D2C6FA

Accessibility & contrast

On white

4.77
#7A56EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#7A56EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56EF
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56EF#FFFFFF#000000##FFFFFF
##7A56EF1.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#006FEC
Tritanopia (blue-blind)
#517B9B
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7a56ef;
/* rgb */ color: rgb(122, 86, 239);
/* oklch */ color: oklch(57.6% 0.218 288.4);
Tailwind
colors: {
  custom: {
    50: '#a988f5',
    500: '#7a56ef',
    950: '#000000',
  },
}
SCSS
$custom: #7a56ef;
$custom-light: #a988f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56ef",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 239
  },
  "hsl": {
    "h": 254.118,
    "s": 82.703,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57621,
    "c": 0.21818,
    "h": 288.4
  },
  "luminance": 0.17025
}

Semantic roles & 50–950 ramp

primary
#7A56EF
secondary
#DFEBB5
accent
#DF06AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A56EF

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

Preview Lab → · Contrast checker → · Palette generator →

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