#7B56BC#7B56BC

#7B56BC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.1% C 0.155 H 297.7°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#7B56BC
RGBrgb(123, 86, 188)
HSLhsl(262, 43%, 54%)
HSVhsv(262, 54%, 74%)
CMYKcmyk(34.6%, 54.3%, 0%, 26.3%)
CIE-LABlab(44.94, 37.54, -48.49)
CIE-LCHlch(44.94, 61.32, 307.74°)
OKLaboklab(54.1% 0.0722 -0.1372)
OKLCHoklch(54.1% 0.155 297.7)
XYZxyz(20.5710, 14.4971, 49.2816)
Luminance0.1450 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56BC #97BC56
analogous
#5664BC #7B56BC #AE56BC
triadic
#7B56BC #BC7B56 #56BC7B
tetradic
#7B56BC #BC5664 #97BC56 #56BCAE
square
#7B56BC #BC5664 #97BC56 #56BCAE
split-complementary
#7B56BC #BCAE56 #64BC56
monochromatic
#432B6D #5E3C98 #7B56BC #9D82CD #BFAEDF

Accessibility & contrast

On white

5.39
#7B56BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#7B56BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56BC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56BC#FFFFFF#000000##FFFFFF
##7B56BC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C6BBF
Deuteranopia (green-blind)
#3769BA
Tritanopia (blue-blind)
#6D6A81
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #7b56bc;
/* rgb */ color: rgb(123, 86, 188);
/* oklch */ color: oklch(54.1% 0.155 297.7);
Tailwind
colors: {
  custom: {
    50: '#a587d1',
    500: '#7b56bc',
    950: '#000000',
  },
}
SCSS
$custom: #7b56bc;
$custom-light: #a587d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56bc",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 188
  },
  "hsl": {
    "h": 261.765,
    "s": 43.22,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.15502,
    "h": 297.7
  },
  "luminance": 0.14497
}

Semantic roles & 50–950 ramp

primary
#7B56BC
secondary
#BDCDA1
accent
#D355A5
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7B56BC

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

Preview Lab → · Contrast checker → · Palette generator →

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