#7B56CF#7B56CF

#7B56CF is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.4% C 0.179 H 293.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#7B56CF
RGBrgb(123, 86, 207)
HSLhsl(258, 56%, 57%)
HSVhsv(258, 58%, 81%)
CMYKcmyk(40.6%, 58.5%, 0%, 18.8%)
CIE-LABlab(46.14, 42.63, -57.55)
CIE-LCHlch(46.14, 71.62, 306.53°)
OKLaboklab(55.37% 0.0724 -0.1638)
OKLCHoklch(55.37% 0.179 293.8)
XYZxyz(22.7556, 15.3710, 60.7873)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56CF #AACF56
analogous
#566ECF #7B56CF #B756CF
triadic
#7B56CF #CF7B56 #56CF7B
tetradic
#7B56CF #CF566E #AACF56 #56CFB7
square
#7B56CF #CF566E #AACF56 #56CFB7
split-complementary
#7B56CF #CFB756 #6ECF56
monochromatic
#432685 #5B33B5 #7B56CF #A086DD #C5B5EA

Accessibility & contrast

On white

5.15
#7B56CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7B56CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7B56CF
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56CF#FFFFFF#000000##FFFFFF
##7B56CF1.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#016FD3
Deuteranopia (green-blind)
#1A6BCC
Tritanopia (blue-blind)
#65708A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b56cf;
/* rgb */ color: rgb(123, 86, 207);
/* oklch */ color: oklch(55.4% 0.179 293.8);
Tailwind
colors: {
  custom: {
    50: '#a687de',
    500: '#7b56cf',
    950: '#000000',
  },
}
SCSS
$custom: #7b56cf;
$custom-light: #a687de;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56cf",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 207
  },
  "hsl": {
    "h": 258.347,
    "s": 55.76,
    "l": 57.451
  },
  "oklch": {
    "l": 0.55366,
    "c": 0.17907,
    "h": 293.8
  },
  "luminance": 0.15372
}

Semantic roles & 50–950 ramp

primary
#7B56CF
secondary
#CAD9A8
accent
#DF49B1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B56CF

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

Preview Lab → · Contrast checker → · Palette generator →

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