#7D56CC#7D56CC

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

Color values

HEX#7D56CC
RGBrgb(125, 86, 204)
HSLhsl(260, 54%, 57%)
HSVhsv(260, 58%, 80%)
CMYKcmyk(38.7%, 57.8%, 0%, 20%)
CIE-LABlab(46.14, 42.27, -55.81)
CIE-LCHlch(46.14, 70.01, 307.14°)
OKLaboklab(55.35% 0.075 -0.1586)
OKLCHoklch(55.35% 0.175 295.3)
XYZxyz(22.6815, 15.3747, 58.8876)
Luminance0.1537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56CC #A5CC56
analogous
#566ACC #7D56CC #B856CC
triadic
#7D56CC #CC7D56 #56CC7D
tetradic
#7D56CC #CC566A #A5CC56 #56CCB8
square
#7D56CC #CC566A #A5CC56 #56CCB8
split-complementary
#7D56CC #CCB856 #6ACC56
monochromatic
#452781 #5E35B0 #7D56CC #A185DA #C5B4E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D56CC#FFFFFF#000000##FFFFFF
##7D56CC1.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)
#116ED0
Deuteranopia (green-blind)
#246CC9
Tritanopia (blue-blind)
#696F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d56cc;
/* rgb */ color: rgb(125, 86, 204);
/* oklch */ color: oklch(55.4% 0.175 295.3);
Tailwind
colors: {
  custom: {
    50: '#a787dc',
    500: '#7d56cc',
    950: '#000000',
  },
}
SCSS
$custom: #7d56cc;
$custom-light: #a787dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56cc",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 259.831,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55354,
    "c": 0.17547,
    "h": 295.3
  },
  "luminance": 0.15375
}

Semantic roles & 50–950 ramp

primary
#7D56CC
secondary
#C7D7A7
accent
#DD4BAD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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