#7A56CD#7A56CD

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

Color values

HEX#7A56CD
RGBrgb(122, 86, 205)
HSLhsl(258, 54%, 57%)
HSVhsv(258, 58%, 80%)
CMYKcmyk(40.5%, 58%, 0%, 19.6%)
CIE-LABlab(45.91, 41.87, -56.78)
CIE-LCHlch(45.91, 70.54, 306.40°)
OKLaboklab(55.13% 0.0711 -0.1616)
OKLCHoklch(55.13% 0.177 293.7)
XYZxyz(22.3703, 15.2004, 59.5011)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56CD #A9CD56
analogous
#566ECD #7A56CD #B556CD
triadic
#7A56CD #CD7A56 #56CD7A
tetradic
#7A56CD #CD566E #A9CD56 #56CDB5
square
#7A56CD #CD566E #A9CD56 #56CDB5
split-complementary
#7A56CD #CDB556 #6ECD56
monochromatic
#422682 #5A34B1 #7A56CD #9F85DB #C4B4E9

Accessibility & contrast

On white

5.20
#7A56CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7A56CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56CD
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56CD#FFFFFF#000000##FFFFFF
##7A56CD1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086ED1
Deuteranopia (green-blind)
#1D6BCA
Tritanopia (blue-blind)
#647089
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7a56cd;
/* rgb */ color: rgb(122, 86, 205);
/* oklch */ color: oklch(55.1% 0.176 293.7);
Tailwind
colors: {
  custom: {
    50: '#a687dd',
    500: '#7a56cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a56cd;
$custom-light: #a687dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56cd",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 258.151,
    "s": 54.338,
    "l": 57.059
  },
  "oklch": {
    "l": 0.55132,
    "c": 0.1765,
    "h": 293.7
  },
  "luminance": 0.15201
}

Semantic roles & 50–950 ramp

primary
#7A56CD
secondary
#C9D8A7
accent
#DE4AB1
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7A56CD

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

Preview Lab → · Contrast checker → · Palette generator →

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