#7A56BB#7A56BB

#7A56BB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 53.9% C 0.154 H 297.5°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#7A56BB
RGBrgb(122, 86, 187)
HSLhsl(261, 43%, 54%)
HSVhsv(261, 54%, 73%)
CMYKcmyk(34.8%, 54%, 0%, 26.7%)
CIE-LABlab(44.77, 37.02, -48.18)
CIE-LCHlch(44.77, 60.76, 307.54°)
OKLaboklab(53.93% 0.0708 -0.1363)
OKLCHoklch(53.93% 0.154 297.5)
XYZxyz(20.3212, 14.3807, 48.7092)
Luminance0.1438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56BB #97BB56
analogous
#5664BB #7A56BB #AC56BB
triadic
#7A56BB #BB7A56 #56BB7A
tetradic
#7A56BB #BB5664 #97BB56 #56BBAC
square
#7A56BB #BB5664 #97BB56 #56BBAC
split-complementary
#7A56BB #BBAC56 #64BB56
monochromatic
#422B6B #5D3D97 #7A56BB #9C82CD #BFADDE

Accessibility & contrast

On white

5.42
#7A56BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#7A56BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56BB
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56BB#FFFFFF#000000##FFFFFF
##7A56BB1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D6ABE
Deuteranopia (green-blind)
#3769B9
Tritanopia (blue-blind)
#6B6A80
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7a56bb;
/* rgb */ color: rgb(122, 86, 187);
/* oklch */ color: oklch(53.9% 0.154 297.5);
Tailwind
colors: {
  custom: {
    50: '#a487d0',
    500: '#7a56bb',
    950: '#000000',
  },
}
SCSS
$custom: #7a56bb;
$custom-light: #a487d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56bb",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 261.386,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53933,
    "c": 0.1536,
    "h": 297.5
  },
  "luminance": 0.14381
}

Semantic roles & 50–950 ramp

primary
#7A56BB
secondary
#BDCCA1
accent
#D255A6
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#0F0B14
muted
#7F7C82

Preview Lab

Preview with #7A56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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