#7B56BB#7B56BB

#7B56BB is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.0% C 0.154 H 298.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#7B56BB
RGBrgb(123, 86, 187)
HSLhsl(262, 43%, 54%)
HSVhsv(262, 54%, 73%)
CMYKcmyk(34.2%, 54%, 0%, 26.7%)
CIE-LABlab(44.88, 37.27, -48.01)
CIE-LCHlch(44.88, 60.78, 307.83°)
OKLaboklab(54.03% 0.0721 -0.1358)
OKLCHoklch(54.03% 0.154 298)
XYZxyz(20.4636, 14.4541, 48.7159)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56BB #96BB56
analogous
#5663BB #7B56BB #AD56BB
triadic
#7B56BB #BB7B56 #56BB7B
tetradic
#7B56BB #BB5663 #96BB56 #56BBAD
square
#7B56BB #BB5663 #96BB56 #56BBAD
split-complementary
#7B56BB #BBAD56 #63BB56
monochromatic
#432B6B #5E3D97 #7B56BB #9D82CD #BFADDE

Accessibility & contrast

On white

5.40
#7B56BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#7B56BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56BB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56BB#FFFFFF#000000##FFFFFF
##7B56BB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b56bb;
/* rgb */ color: rgb(123, 86, 187);
/* oklch */ color: oklch(54.0% 0.154 298.0);
Tailwind
colors: {
  custom: {
    50: '#a587d0',
    500: '#7b56bb',
    950: '#000000',
  },
}
SCSS
$custom: #7b56bb;
$custom-light: #a587d0;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56bb",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 187
  },
  "hsl": {
    "h": 261.98,
    "s": 42.616,
    "l": 53.529
  },
  "oklch": {
    "l": 0.54033,
    "c": 0.15374,
    "h": 298
  },
  "luminance": 0.14454
}

Semantic roles & 50–950 ramp

primary
#7B56BB
secondary
#BCCCA1
accent
#D255A5
background
#FAF8FC
surface
#F4EFF9
border
#CECAD2
text
#100B14
muted
#7F7C82

Preview Lab

Preview with #7B56BB

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

Preview Lab → · Contrast checker → · Palette generator →

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