#7B56CE#7B56CE

#7B56CE is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.3% C 0.178 H 294.0°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7B56CE
RGBrgb(123, 86, 206)
HSLhsl(259, 55%, 57%)
HSVhsv(259, 58%, 81%)
CMYKcmyk(40.3%, 58.3%, 0%, 19.2%)
CIE-LABlab(46.07, 42.36, -57.08)
CIE-LCHlch(46.07, 71.08, 306.58°)
OKLaboklab(55.3% 0.0724 -0.1624)
OKLCHoklch(55.3% 0.178 294)
XYZxyz(22.6338, 15.3222, 60.1455)
Luminance0.1532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56CE #A9CE56
analogous
#566DCE #7B56CE #B756CE
triadic
#7B56CE #CE7B56 #56CE7B
tetradic
#7B56CE #CE566D #A9CE56 #56CEB7
square
#7B56CE #CE566D #A9CE56 #56CEB7
split-complementary
#7B56CE #CEB756 #6DCE56
monochromatic
#432683 #5B34B3 #7B56CE #A085DC #C5B5EA

Accessibility & contrast

On white

5.17
#7B56CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7B56CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56CE
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56CE#FFFFFF#000000##FFFFFF
##7B56CE1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#066ED2
Deuteranopia (green-blind)
#1D6BCB
Tritanopia (blue-blind)
#65708A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b56ce;
/* rgb */ color: rgb(123, 86, 206);
/* oklch */ color: oklch(55.3% 0.178 294.0);
Tailwind
colors: {
  custom: {
    50: '#a687de',
    500: '#7b56ce',
    950: '#000000',
  },
}
SCSS
$custom: #7b56ce;
$custom-light: #a687de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56ce",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 206
  },
  "hsl": {
    "h": 258.5,
    "s": 55.046,
    "l": 57.255
  },
  "oklch": {
    "l": 0.55297,
    "c": 0.17783,
    "h": 294
  },
  "luminance": 0.15323
}

Semantic roles & 50–950 ramp

primary
#7B56CE
secondary
#C9D8A8
accent
#DE49B0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B56CE

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

Preview Lab → · Contrast checker → · Palette generator →

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