#7D56DC#7D56DC

#7D56DC is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.5% C 0.195 H 292.4°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#7D56DC
RGBrgb(125, 86, 220)
HSLhsl(257, 66%, 60%)
HSVhsv(257, 61%, 86%)
CMYKcmyk(43.2%, 60.9%, 0%, 13.7%)
CIE-LABlab(47.21, 46.60, -63.23)
CIE-LCHlch(47.21, 78.55, 306.39°)
OKLaboklab(56.48% 0.0745 -0.1804)
OKLCHoklch(56.48% 0.195 292.4)
XYZxyz(24.7000, 16.1821, 69.5183)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56DC #B5DC56
analogous
#5672DC #7D56DC #C056DC
triadic
#7D56DC #DC7D56 #56DC7D
tetradic
#7D56DC #DC5672 #B5DC56 #56DCC0
square
#7D56DC #DC5672 #B5DC56 #56DCC0
split-complementary
#7D56DC #DCC056 #72DC56
monochromatic
#432098 #592ACB #7D56DC #A489E6 #CBBBF1

Accessibility & contrast

On white

4.96
#7D56DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#7D56DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56DC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56DC#FFFFFF#000000##FFFFFF
##7D56DC1.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d56dc;
/* rgb */ color: rgb(125, 86, 220);
/* oklch */ color: oklch(56.5% 0.195 292.4);
Tailwind
colors: {
  custom: {
    50: '#a987e8',
    500: '#7d56dc',
    950: '#000000',
  },
}
SCSS
$custom: #7d56dc;
$custom-light: #a987e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56dc",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 220
  },
  "hsl": {
    "h": 257.463,
    "s": 65.686,
    "l": 60
  },
  "oklch": {
    "l": 0.56477,
    "c": 0.19521,
    "h": 292.4
  },
  "luminance": 0.16183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D56DC

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

Preview Lab → · Contrast checker → · Palette generator →

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