#7B56BF#7B56BF

#7B56BF is a mid, vivid violet. Relative luminance 0.146; OKLCH L 54.3% C 0.159 H 297.1°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#7B56BF
RGBrgb(123, 86, 191)
HSLhsl(261, 45%, 54%)
HSVhsv(261, 55%, 75%)
CMYKcmyk(35.6%, 55%, 0%, 25.1%)
CIE-LABlab(45.12, 38.33, -49.95)
CIE-LCHlch(45.12, 62.96, 307.51°)
OKLaboklab(54.29% 0.0723 -0.1415)
OKLCHoklch(54.29% 0.159 297.1)
XYZxyz(20.8978, 14.6278, 51.0026)
Luminance0.1463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56BF #9ABF56
analogous
#5666BF #7B56BF #B056BF
triadic
#7B56BF #BF7B56 #56BF7B
tetradic
#7B56BF #BF5666 #9ABF56 #56BFB0
square
#7B56BF #BF5666 #9ABF56 #56BFB0
split-complementary
#7B56BF #BFB056 #66BF56
monochromatic
#432A70 #5E3B9D #7B56BF #9E82D0 #C0AFE1

Accessibility & contrast

On white

5.35
#7B56BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#7B56BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56BF
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56BF#FFFFFF#000000##FFFFFF
##7B56BF1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#286BC3
Deuteranopia (green-blind)
#346ABD
Tritanopia (blue-blind)
#6B6B82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #7b56bf;
/* rgb */ color: rgb(123, 86, 191);
/* oklch */ color: oklch(54.3% 0.159 297.1);
Tailwind
colors: {
  custom: {
    50: '#a587d3',
    500: '#7b56bf',
    950: '#000000',
  },
}
SCSS
$custom: #7b56bf;
$custom-light: #a587d3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56bf",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 191
  },
  "hsl": {
    "h": 261.143,
    "s": 45.064,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54291,
    "c": 0.15886,
    "h": 297.1
  },
  "luminance": 0.14628
}

Semantic roles & 50–950 ramp

primary
#7B56BF
secondary
#BFCFA2
accent
#D553A7
background
#FAF8FD
surface
#F4EFFA
border
#CECAD3
text
#100B14
muted
#7F7C83

Preview Lab

Preview with #7B56BF

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

Preview Lab → · Contrast checker → · Palette generator →

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