#7C56DC#7C56DC

#7C56DC is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.4% C 0.195 H 292.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7C56DC
RGBrgb(124, 86, 220)
HSLhsl(257, 66%, 60%)
HSVhsv(257, 61%, 86%)
CMYKcmyk(43.6%, 60.9%, 0%, 13.7%)
CIE-LABlab(47.11, 46.40, -63.39)
CIE-LCHlch(47.11, 78.56, 306.20°)
OKLaboklab(56.38% 0.0732 -0.181)
OKLCHoklch(56.38% 0.195 292)
XYZxyz(24.5547, 16.1072, 69.5115)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C56DC #B6DC56
analogous
#5673DC #7C56DC #BF56DC
triadic
#7C56DC #DC7C56 #56DC7C
tetradic
#7C56DC #DC5673 #B6DC56 #56DCBF
square
#7C56DC #DC5673 #B6DC56 #56DCBF
split-complementary
#7C56DC #DCBF56 #73DC56
monochromatic
#422098 #582ACB #7C56DC #A389E6 #CBBBF1

Accessibility & contrast

On white

4.97
#7C56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#7C56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C56DC
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C56DC#FFFFFF#000000##FFFFFF
##7C56DC1.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072E0
Deuteranopia (green-blind)
#006DD9
Tritanopia (blue-blind)
#607591
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7c56dc;
/* rgb */ color: rgb(124, 86, 220);
/* oklch */ color: oklch(56.4% 0.195 292.0);
Tailwind
colors: {
  custom: {
    50: '#a887e8',
    500: '#7c56dc',
    950: '#000000',
  },
}
SCSS
$custom: #7c56dc;
$custom-light: #a887e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c56dc",
  "rgb": {
    "r": 124,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 257.015,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.56382,
    "c": 0.19519,
    "h": 292
  },
  "luminance": 0.16108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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