#7B56C8#7B56C8

#7B56C8 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.9% C 0.170 H 295.2°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#7B56C8
RGBrgb(123, 86, 200)
HSLhsl(259, 51%, 56%)
HSVhsv(259, 57%, 78%)
CMYKcmyk(38.5%, 57%, 0%, 21.6%)
CIE-LABlab(45.68, 40.74, -54.25)
CIE-LCHlch(45.68, 67.84, 306.90°)
OKLaboklab(54.89% 0.0724 -0.1541)
OKLCHoklch(54.89% 0.17 295.2)
XYZxyz(21.9188, 15.0362, 56.3798)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56C8 #A3C856
analogous
#566AC8 #7B56C8 #B456C8
triadic
#7B56C8 #C87B56 #56C87B
tetradic
#7B56C8 #C8566A #A3C856 #56C8B4
square
#7B56C8 #C8566A #A3C856 #56C8B4
split-complementary
#7B56C8 #C8B456 #6AC856
monochromatic
#43287B #5C37AA #7B56C8 #9F84D7 #C3B2E6

Accessibility & contrast

On white

5.24
#7B56C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#7B56C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56C8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56C8#FFFFFF#000000##FFFFFF
##7B56C81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#286AC5
Tritanopia (blue-blind)
#686E87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #7b56c8;
/* rgb */ color: rgb(123, 86, 200);
/* oklch */ color: oklch(54.9% 0.170 295.2);
Tailwind
colors: {
  custom: {
    50: '#a687d9',
    500: '#7b56c8',
    950: '#000000',
  },
}
SCSS
$custom: #7b56c8;
$custom-light: #a687d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56c8",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 200
  },
  "hsl": {
    "h": 259.474,
    "s": 50.893,
    "l": 56.078
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.17028,
    "h": 295.2
  },
  "luminance": 0.15037
}

Semantic roles & 50–950 ramp

primary
#7B56C8
secondary
#C5D4A5
accent
#DA4DAD
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B56C8

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

Preview Lab → · Contrast checker → · Palette generator →

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