#7D56CD#7D56CD

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

Color values

HEX#7D56CD
RGBrgb(125, 86, 205)
HSLhsl(260, 54%, 57%)
HSVhsv(260, 58%, 80%)
CMYKcmyk(39%, 58%, 0%, 19.6%)
CIE-LABlab(46.21, 42.54, -56.28)
CIE-LCHlch(46.21, 70.55, 307.09°)
OKLaboklab(55.42% 0.075 -0.16)
OKLCHoklch(55.42% 0.177 295.1)
XYZxyz(22.8018, 15.4229, 59.5213)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56CD #A6CD56
analogous
#566BCD #7D56CD #B956CD
triadic
#7D56CD #CD7D56 #56CD7D
tetradic
#7D56CD #CD566B #A6CD56 #56CDB9
square
#7D56CD #CD566B #A6CD56 #56CDB9
split-complementary
#7D56CD #CDB956 #6BCD56
monochromatic
#452682 #5D34B1 #7D56CD #A185DB #C6B4E9

Accessibility & contrast

On white

5.14
#7D56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7D56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56CD
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56CD#FFFFFF#000000##FFFFFF
##7D56CD1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6ED1
Deuteranopia (green-blind)
#226CCA
Tritanopia (blue-blind)
#697089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d56cd;
/* rgb */ color: rgb(125, 86, 205);
/* oklch */ color: oklch(55.4% 0.177 295.1);
Tailwind
colors: {
  custom: {
    50: '#a787dd',
    500: '#7d56cd',
    950: '#000000',
  },
}
SCSS
$custom: #7d56cd;
$custom-light: #a787dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56cd",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 259.664,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55423,
    "c": 0.17671,
    "h": 295.1
  },
  "luminance": 0.15423
}

Semantic roles & 50–950 ramp

primary
#7D56CD
secondary
#C8D8A7
accent
#DE4AAD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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