#7A56CC#7A56CC

#7A56CC is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.1% C 0.175 H 293.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#7A56CC
RGBrgb(122, 86, 204)
HSLhsl(258, 54%, 57%)
HSVhsv(258, 58%, 80%)
CMYKcmyk(40.2%, 57.8%, 0%, 20%)
CIE-LABlab(45.84, 41.59, -56.31)
CIE-LCHlch(45.84, 70.00, 306.45°)
OKLaboklab(55.06% 0.0711 -0.1602)
OKLCHoklch(55.06% 0.175 293.9)
XYZxyz(22.2500, 15.1522, 58.8674)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56CC #A8CC56
analogous
#566DCC #7A56CC #B556CC
triadic
#7A56CC #CC7A56 #56CC7A
tetradic
#7A56CC #CC566D #A8CC56 #56CCB5
square
#7A56CC #CC566D #A8CC56 #56CCB5
split-complementary
#7A56CC #CCB556 #6DCC56
monochromatic
#422781 #5A35B0 #7A56CC #9F85DA #C4B4E8

Accessibility & contrast

On white

5.21
#7A56CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#7A56CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56CC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56CC#FFFFFF#000000##FFFFFF
##7A56CC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D6ED0
Deuteranopia (green-blind)
#1F6BC9
Tritanopia (blue-blind)
#656F89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a56cc;
/* rgb */ color: rgb(122, 86, 204);
/* oklch */ color: oklch(55.1% 0.175 293.9);
Tailwind
colors: {
  custom: {
    50: '#a587dc',
    500: '#7a56cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a56cc;
$custom-light: #a587dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56cc",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 258.305,
    "s": 53.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55063,
    "c": 0.17525,
    "h": 293.9
  },
  "luminance": 0.15153
}

Semantic roles & 50–950 ramp

primary
#7A56CC
secondary
#C8D7A7
accent
#DD4BB0
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A56CC

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

Preview Lab → · Contrast checker → · Palette generator →

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