#7B56DC#7B56DC

#7B56DC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 56.3% C 0.195 H 291.6°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7B56DC
RGBrgb(123, 86, 220)
HSLhsl(257, 66%, 60%)
HSVhsv(257, 61%, 86%)
CMYKcmyk(44.1%, 60.9%, 0%, 13.7%)
CIE-LABlab(47.02, 46.19, -63.55)
CIE-LCHlch(47.02, 78.57, 306.01°)
OKLaboklab(56.29% 0.0718 -0.1815)
OKLCHoklch(56.29% 0.195 291.6)
XYZxyz(24.4109, 16.0330, 69.5048)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56DC #B7DC56
analogous
#5674DC #7B56DC #BE56DC
triadic
#7B56DC #DC7B56 #56DC7B
tetradic
#7B56DC #DC5674 #B7DC56 #56DCBE
square
#7B56DC #DC5674 #B7DC56 #56DCBE
split-complementary
#7B56DC #DCBE56 #74DC56
monochromatic
#412098 #562ACB #7B56DC #A389E6 #CABBF1

Accessibility & contrast

On white

4.99
#7B56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7B56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56DC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56DC#FFFFFF#000000##FFFFFF
##7B56DC1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#5F7591
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7b56dc;
/* rgb */ color: rgb(123, 86, 220);
/* oklch */ color: oklch(56.3% 0.195 291.6);
Tailwind
colors: {
  custom: {
    50: '#a887e8',
    500: '#7b56dc',
    950: '#000000',
  },
}
SCSS
$custom: #7b56dc;
$custom-light: #a887e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56dc",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 256.567,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.56289,
    "c": 0.19517,
    "h": 291.6
  },
  "luminance": 0.16034
}

Semantic roles & 50–950 ramp

primary
#7B56DC
secondary
#D2E1AD
accent
#E93FBA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7B56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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