#7A56EB#7A56EB

#7A56EB is a mid, highly saturated violet. Relative luminance 0.168; OKLCH L 57.3% C 0.213 H 289.0°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#7A56EB
RGBrgb(122, 86, 235)
HSLhsl(254, 79%, 63%)
HSVhsv(254, 63%, 92%)
CMYKcmyk(48.1%, 63.4%, 0%, 7.8%)
CIE-LABlab(47.99, 50.17, -70.46)
CIE-LCHlch(47.99, 86.49, 305.45°)
OKLaboklab(57.31% 0.0694 -0.2018)
OKLCHoklch(57.31% 0.213 289)
XYZxyz(26.3449, 16.7902, 80.4339)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56EB #C7EB56
analogous
#567CEB #7A56EB #C556EB
triadic
#7A56EB #EB7A56 #56EB7A
tetradic
#7A56EB #EB567C #C7EB56 #56EBC5
square
#7A56EB #EB567C #C7EB56 #56EBC5
split-complementary
#7A56EB #EBC556 #7CEB56
monochromatic
#3B15B2 #4F1FE5 #7A56EB #A58DF1 #D0C3F8

Accessibility & contrast

On white

4.82
#7A56EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7A56EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56EB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56EB#FFFFFF#000000##FFFFFF
##7A56EB1.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F0
Deuteranopia (green-blind)
#006EE8
Tritanopia (blue-blind)
#547A99
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7a56eb;
/* rgb */ color: rgb(122, 86, 235);
/* oklch */ color: oklch(57.3% 0.213 289.0);
Tailwind
colors: {
  custom: {
    50: '#a987f2',
    500: '#7a56eb',
    950: '#000000',
  },
}
SCSS
$custom: #7a56eb;
$custom-light: #a987f2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56eb",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 235
  },
  "hsl": {
    "h": 254.497,
    "s": 78.836,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57314,
    "c": 0.21339,
    "h": 289
  },
  "luminance": 0.16791
}

Semantic roles & 50–950 ramp

primary
#7A56EB
secondary
#DCE9B4
accent
#DB0AA9
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110B17
muted
#807C85

Preview Lab

Preview with #7A56EB

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

Preview Lab → · Contrast checker → · Palette generator →

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