#7A56E7#7A56E7

#7A56E7 is a mid, highly saturated violet. Relative luminance 0.166; OKLCH L 57.0% C 0.209 H 289.5°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7A56E7
RGBrgb(122, 86, 231)
HSLhsl(255, 75%, 62%)
HSVhsv(255, 63%, 91%)
CMYKcmyk(47.2%, 62.8%, 0%, 9.4%)
CIE-LABlab(47.70, 49.05, -68.68)
CIE-LCHlch(47.70, 84.40, 305.53°)
OKLaboklab(57.01% 0.0697 -0.1966)
OKLCHoklch(57.01% 0.209 289.5)
XYZxyz(25.7735, 16.5617, 77.4245)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56E7 #C3E756
analogous
#567AE7 #7A56E7 #C356E7
triadic
#7A56E7 #E77A56 #56E77A
tetradic
#7A56E7 #E7567A #C3E756 #56E7C3
square
#7A56E7 #E7567A #C3E756 #56E7C3
split-complementary
#7A56E7 #E7C356 #7AE756
monochromatic
#3C18AA #5020DF #7A56E7 #A48CEF #CEC1F6

Accessibility & contrast

On white

4.87
#7A56E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7A56E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56E7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56E7#FFFFFF#000000##FFFFFF
##7A56E71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074EC
Deuteranopia (green-blind)
#006EE4
Tritanopia (blue-blind)
#577897
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7a56e7;
/* rgb */ color: rgb(122, 86, 231);
/* oklch */ color: oklch(57.0% 0.209 289.5);
Tailwind
colors: {
  custom: {
    50: '#a887f0',
    500: '#7a56e7',
    950: '#000000',
  },
}
SCSS
$custom: #7a56e7;
$custom-light: #a887f0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56e7",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 254.897,
    "s": 75.13,
    "l": 62.157
  },
  "oklch": {
    "l": 0.57011,
    "c": 0.20857,
    "h": 289.5
  },
  "luminance": 0.16563
}

Semantic roles & 50–950 ramp

primary
#7A56E7
secondary
#DAE7B2
accent
#D70EA5
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A56E7

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

Preview Lab → · Contrast checker → · Palette generator →

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