#7D51DC#7D51DC

#7D51DC is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 55.7% C 0.202 H 293.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7D51DC
RGBrgb(125, 81, 220)
HSLhsl(259, 67%, 59%)
HSVhsv(259, 63%, 86%)
CMYKcmyk(43.2%, 63.2%, 0%, 13.7%)
CIE-LABlab(46.19, 49.33, -64.88)
CIE-LCHlch(46.19, 81.51, 307.25°)
OKLaboklab(55.74% 0.0799 -0.1853)
OKLCHoklch(55.74% 0.202 293.3)
XYZxyz(24.3146, 15.4115, 69.3899)
Luminance0.1541 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51DC #B0DC51
analogous
#516BDC #7D51DC #C351DC
triadic
#7D51DC #DC7D51 #51DC7D
tetradic
#7D51DC #DC516B #B0DC51 #51DCC3
square
#7D51DC #DC516B #B0DC51 #51DCC3
split-complementary
#7D51DC #DCC351 #6BDC51
monochromatic
#441E95 #5B28C8 #7D51DC #A384E6 #C9B7F0

Accessibility & contrast

On white

5.14
#7D51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7D51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51DC
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51DC#FFFFFF#000000##FFFFFF
##7D51DC1.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE0
Deuteranopia (green-blind)
#006BD9
Tritanopia (blue-blind)
#62718F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d51dc;
/* rgb */ color: rgb(125, 81, 220);
/* oklch */ color: oklch(55.7% 0.202 293.3);
Tailwind
colors: {
  custom: {
    50: '#a984e8',
    500: '#7d51dc',
    950: '#000000',
  },
}
SCSS
$custom: #7d51dc;
$custom-light: #a984e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51dc",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 258.993,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.55736,
    "c": 0.20179,
    "h": 293.3
  },
  "luminance": 0.15412
}

Semantic roles & 50–950 ramp

primary
#7D51DC
secondary
#CEE0A9
accent
#E93EB3
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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