#7B56E4#7B56E4

#7B56E4 is a mid, highly saturated violet. Relative luminance 0.165; OKLCH L 56.9% C 0.205 H 290.4°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#7B56E4
RGBrgb(123, 86, 228)
HSLhsl(256, 72%, 62%)
HSVhsv(256, 62%, 89%)
CMYKcmyk(46.1%, 62.3%, 0%, 10.6%)
CIE-LABlab(47.58, 48.41, -67.18)
CIE-LCHlch(47.58, 82.80, 305.77°)
OKLaboklab(56.88% 0.0713 -0.1921)
OKLCHoklch(56.88% 0.205 290.4)
XYZxyz(25.4958, 16.4670, 75.2188)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56E4 #BFE456
analogous
#5678E4 #7B56E4 #C256E4
triadic
#7B56E4 #E47B56 #56E47B
tetradic
#7B56E4 #E45678 #BFE456 #56E4C2
square
#7B56E4 #E45678 #BFE456 #56E4C2
split-complementary
#7B56E4 #E4C256 #78E456
monochromatic
#3F1AA5 #5323DA #7B56E4 #A48BEC #CDC0F5

Accessibility & contrast

On white

4.89
#7B56E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#7B56E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56E4
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56E4#FFFFFF#000000##FFFFFF
##7B56E41.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E9
Deuteranopia (green-blind)
#006EE1
Tritanopia (blue-blind)
#5A7795
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7b56e4;
/* rgb */ color: rgb(123, 86, 228);
/* oklch */ color: oklch(56.9% 0.205 290.4);
Tailwind
colors: {
  custom: {
    50: '#a987ed',
    500: '#7b56e4',
    950: '#000000',
  },
}
SCSS
$custom: #7b56e4;
$custom-light: #a987ed;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56e4",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 228
  },
  "hsl": {
    "h": 255.634,
    "s": 72.449,
    "l": 61.569
  },
  "oklch": {
    "l": 0.56877,
    "c": 0.20492,
    "h": 290.4
  },
  "luminance": 0.16468
}

Semantic roles & 50–950 ramp

primary
#7B56E4
secondary
#D8E5B0
accent
#D511A2
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7B56E4

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

Preview Lab → · Contrast checker → · Palette generator →

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