#7C56CC#7C56CC

#7C56CC is a mid, vivid violet. Relative luminance 0.153; OKLCH L 55.3% C 0.175 H 294.9°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#7C56CC
RGBrgb(124, 86, 204)
HSLhsl(259, 54%, 57%)
HSVhsv(259, 58%, 80%)
CMYKcmyk(39.2%, 57.8%, 0%, 20%)
CIE-LABlab(46.04, 42.05, -55.97)
CIE-LCHlch(46.04, 70.01, 306.91°)
OKLaboklab(55.26% 0.0737 -0.1591)
OKLCHoklch(55.26% 0.175 294.9)
XYZxyz(22.5362, 15.2998, 58.8808)
Luminance0.1530 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C56CC #A6CC56
analogous
#566BCC #7C56CC #B756CC
triadic
#7C56CC #CC7C56 #56CC7C
tetradic
#7C56CC #CC566B #A6CC56 #56CCB7
square
#7C56CC #CC566B #A6CC56 #56CCB7
split-complementary
#7C56CC #CCB756 #6BCC56
monochromatic
#442781 #5D35B0 #7C56CC #A085DA #C5B4E8

Accessibility & contrast

On white

5.17
#7C56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#7C56CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C56CC
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C56CC#FFFFFF#000000##FFFFFF
##7C56CC1.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F6ED0
Deuteranopia (green-blind)
#236BC9
Tritanopia (blue-blind)
#686F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7c56cc;
/* rgb */ color: rgb(124, 86, 204);
/* oklch */ color: oklch(55.3% 0.175 294.9);
Tailwind
colors: {
  custom: {
    50: '#a787dc',
    500: '#7c56cc',
    950: '#000000',
  },
}
SCSS
$custom: #7c56cc;
$custom-light: #a787dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c56cc",
  "rgb": {
    "r": 124,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 259.322,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55257,
    "c": 0.17538,
    "h": 294.9
  },
  "luminance": 0.153
}

Semantic roles & 50–950 ramp

primary
#7C56CC
secondary
#C7D7A7
accent
#DD4BAE
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7C56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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