#7B56CD#7B56CD

#7B56CD is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.2% C 0.177 H 294.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#7B56CD
RGBrgb(123, 86, 205)
HSLhsl(259, 54%, 57%)
HSVhsv(259, 58%, 80%)
CMYKcmyk(40%, 58%, 0%, 19.6%)
CIE-LABlab(46.01, 42.09, -56.61)
CIE-LCHlch(46.01, 70.54, 306.63°)
OKLaboklab(55.23% 0.0724 -0.161)
OKLCHoklch(55.23% 0.177 294.2)
XYZxyz(22.5127, 15.2738, 59.5078)
Luminance0.1527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56CD #A8CD56
analogous
#566DCD #7B56CD #B656CD
triadic
#7B56CD #CD7B56 #56CD7B
tetradic
#7B56CD #CD566D #A8CD56 #56CDB6
square
#7B56CD #CD566D #A8CD56 #56CDB6
split-complementary
#7B56CD #CDB656 #6DCD56
monochromatic
#432682 #5B34B1 #7B56CD #A085DB #C5B4E9

Accessibility & contrast

On white

5.18
#7B56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#7B56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56CD
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56CD#FFFFFF#000000##FFFFFF
##7B56CD1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A6ED1
Deuteranopia (green-blind)
#1F6BCA
Tritanopia (blue-blind)
#667089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b56cd;
/* rgb */ color: rgb(123, 86, 205);
/* oklch */ color: oklch(55.2% 0.177 294.2);
Tailwind
colors: {
  custom: {
    50: '#a687dd',
    500: '#7b56cd',
    950: '#000000',
  },
}
SCSS
$custom: #7b56cd;
$custom-light: #a687dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56cd",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 258.655,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55228,
    "c": 0.17657,
    "h": 294.2
  },
  "luminance": 0.15274
}

Semantic roles & 50–950 ramp

primary
#7B56CD
secondary
#C9D8A7
accent
#DE4AB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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