#7A56DB#7A56DB

#7A56DB is a mid, vivid violet. Relative luminance 0.159; OKLCH L 56.1% C 0.194 H 291.3°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#7A56DB
RGBrgb(122, 86, 219)
HSLhsl(256, 65%, 60%)
HSVhsv(256, 61%, 86%)
CMYKcmyk(44.3%, 60.7%, 0%, 14.1%)
CIE-LABlab(46.85, 45.71, -63.26)
CIE-LCHlch(46.85, 78.05, 305.85°)
OKLaboklab(56.12% 0.0706 -0.1806)
OKLCHoklch(56.12% 0.194 291.3)
XYZxyz(24.1365, 15.9068, 68.8027)
Luminance0.1591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A56DB #B7DB56
analogous
#5674DB #7A56DB #BD56DB
triadic
#7A56DB #DB7A56 #56DB7A
tetradic
#7A56DB #DB5674 #B7DB56 #56DBBD
square
#7A56DB #DB5674 #B7DB56 #56DBBD
split-complementary
#7A56DB #DBBD56 #74DB56
monochromatic
#402097 #562BC9 #7A56DB #A288E6 #C9BBF0

Accessibility & contrast

On white

5.02
#7A56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#7A56DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A56DB
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A56DB#FFFFFF#000000##FFFFFF
##7A56DB1.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071DF
Deuteranopia (green-blind)
#006CD8
Tritanopia (blue-blind)
#5D7490
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #7a56db;
/* rgb */ color: rgb(122, 86, 219);
/* oklch */ color: oklch(56.1% 0.194 291.3);
Tailwind
colors: {
  custom: {
    50: '#a787e7',
    500: '#7a56db',
    950: '#000000',
  },
}
SCSS
$custom: #7a56db;
$custom-light: #a787e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a56db",
  "rgb": {
    "r": 122,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 256.241,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56123,
    "c": 0.19393,
    "h": 291.3
  },
  "luminance": 0.15908
}

Semantic roles & 50–950 ramp

primary
#7A56DB
secondary
#D2E0AD
accent
#E840BA
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7A56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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