#7D56DB#7D56DB

#7D56DB is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.4% C 0.194 H 292.6°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#7D56DB
RGBrgb(125, 86, 219)
HSLhsl(258, 65%, 60%)
HSVhsv(258, 61%, 86%)
CMYKcmyk(42.9%, 60.7%, 0%, 14.1%)
CIE-LABlab(47.14, 46.33, -62.77)
CIE-LCHlch(47.14, 78.02, 306.43°)
OKLaboklab(56.41% 0.0745 -0.1791)
OKLCHoklch(56.41% 0.194 292.6)
XYZxyz(24.5679, 16.1293, 68.8229)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56DB #B4DB56
analogous
#5672DB #7D56DB #C056DB
triadic
#7D56DB #DB7D56 #56DB7D
tetradic
#7D56DB #DB5672 #B4DB56 #56DBC0
square
#7D56DB #DB5672 #B4DB56 #56DBC0
split-complementary
#7D56DB #DBC056 #72DB56
monochromatic
#432097 #592BC9 #7D56DB #A488E6 #CBBBF0

Accessibility & contrast

On white

4.97
#7D56DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#7D56DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56DB
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56DB#FFFFFF#000000##FFFFFF
##7D56DB1.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006DD8
Tritanopia (blue-blind)
#637490
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7d56db;
/* rgb */ color: rgb(125, 86, 219);
/* oklch */ color: oklch(56.4% 0.194 292.6);
Tailwind
colors: {
  custom: {
    50: '#a987e7',
    500: '#7d56db',
    950: '#000000',
  },
}
SCSS
$custom: #7d56db;
$custom-light: #a987e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56db",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 219
  },
  "hsl": {
    "h": 257.594,
    "s": 64.878,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56405,
    "c": 0.19398,
    "h": 292.6
  },
  "luminance": 0.1613
}

Semantic roles & 50–950 ramp

primary
#7D56DB
secondary
#D1E0AD
accent
#E840B7
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7D56DB

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

Preview Lab → · Contrast checker → · Palette generator →

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