#7D56D2#7D56D2

#7D56D2 is a mid, vivid violet. Relative luminance 0.157; OKLCH L 55.8% C 0.183 H 294.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#7D56D2
RGBrgb(125, 86, 210)
HSLhsl(259, 58%, 58%)
HSVhsv(259, 59%, 82%)
CMYKcmyk(40.5%, 59%, 0%, 17.6%)
CIE-LABlab(46.54, 43.89, -58.62)
CIE-LCHlch(46.54, 73.23, 306.82°)
OKLaboklab(55.77% 0.0749 -0.1669)
OKLCHoklch(55.77% 0.183 294.2)
XYZxyz(23.4150, 15.6681, 62.7509)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D56D2 #ABD256
analogous
#566DD2 #7D56D2 #BB56D2
triadic
#7D56D2 #D27D56 #56D27D
tetradic
#7D56D2 #D2566D #ABD256 #56D2BB
square
#7D56D2 #D2566D #ABD256 #56D2BB
split-complementary
#7D56D2 #D2BB56 #6DD256
monochromatic
#442589 #5C31B9 #7D56D2 #A286DF #C7B7EC

Accessibility & contrast

On white

5.08
#7D56D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#7D56D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D56D2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D56D2#FFFFFF#000000##FFFFFF
##7D56D21.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D6
Deuteranopia (green-blind)
#176CCF
Tritanopia (blue-blind)
#67718C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7d56d2;
/* rgb */ color: rgb(125, 86, 210);
/* oklch */ color: oklch(55.8% 0.183 294.2);
Tailwind
colors: {
  custom: {
    50: '#a887e1',
    500: '#7d56d2',
    950: '#000000',
  },
}
SCSS
$custom: #7d56d2;
$custom-light: #a887e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d56d2",
  "rgb": {
    "r": 125,
    "g": 86,
    "b": 210
  },
  "hsl": {
    "h": 258.871,
    "s": 57.944,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55768,
    "c": 0.18292,
    "h": 294.2
  },
  "luminance": 0.15669
}

Semantic roles & 50–950 ramp

primary
#7D56D2
secondary
#CBDBA9
accent
#E147B1
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7D56D2

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

Preview Lab → · Contrast checker → · Palette generator →

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