#7B56CC#7B56CC

#7B56CC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.2% C 0.175 H 294.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#7B56CC
RGBrgb(123, 86, 204)
HSLhsl(259, 54%, 57%)
HSVhsv(259, 58%, 80%)
CMYKcmyk(39.7%, 57.8%, 0%, 20%)
CIE-LABlab(45.94, 41.82, -56.14)
CIE-LCHlch(45.94, 70.00, 306.68°)
OKLaboklab(55.16% 0.0724 -0.1597)
OKLCHoklch(55.16% 0.175 294.4)
XYZxyz(22.3924, 15.2257, 58.8741)
Luminance0.1523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B56CC #A7CC56
analogous
#566CCC #7B56CC #B656CC
triadic
#7B56CC #CC7B56 #56CC7B
tetradic
#7B56CC #CC566C #A7CC56 #56CCB6
square
#7B56CC #CC566C #A7CC56 #56CCB6
split-complementary
#7B56CC #CCB656 #6CCC56
monochromatic
#432781 #5C35B0 #7B56CC #A085DA #C4B4E8

Accessibility & contrast

On white

5.19
#7B56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7B56CC
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B56CC#FFFFFF#000000##FFFFFF
##7B56CC1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E6ED0
Deuteranopia (green-blind)
#216BC9
Tritanopia (blue-blind)
#666F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7b56cc;
/* rgb */ color: rgb(123, 86, 204);
/* oklch */ color: oklch(55.2% 0.175 294.4);
Tailwind
colors: {
  custom: {
    50: '#a687dc',
    500: '#7b56cc',
    950: '#000000',
  },
}
SCSS
$custom: #7b56cc;
$custom-light: #a687dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7b56cc",
  "rgb": {
    "r": 123,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 258.814,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55159,
    "c": 0.17531,
    "h": 294.4
  },
  "luminance": 0.15226
}

Semantic roles & 50–950 ramp

primary
#7B56CC
secondary
#C8D7A7
accent
#DD4BAF
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7B56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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