#7D51DF#7D51DF

#7D51DF is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.0% C 0.205 H 292.8°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#7D51DF
RGBrgb(125, 81, 223)
HSLhsl(259, 69%, 60%)
HSVhsv(259, 64%, 87%)
CMYKcmyk(43.9%, 63.7%, 0%, 12.5%)
CIE-LABlab(46.41, 50.14, -66.24)
CIE-LCHlch(46.41, 83.08, 307.12°)
OKLaboklab(55.96% 0.0796 -0.1893)
OKLCHoklch(55.96% 0.205 292.8)
XYZxyz(24.7155, 15.5718, 71.5012)
Luminance0.1557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51DF #B3DF51
analogous
#516CDF #7D51DF #C451DF
triadic
#7D51DF #DF7D51 #51DF7D
tetradic
#7D51DF #DF516C #B3DF51 #51DFC4
square
#7D51DF #DF516C #B3DF51 #51DFC4
split-complementary
#7D51DF #DFC451 #6CDF51
monochromatic
#431C99 #5A26CD #7D51DF #A485E9 #CAB8F2

Accessibility & contrast

On white

5.10
#7D51DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#7D51DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51DF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51DF#FFFFFF#000000##FFFFFF
##7D51DF1.005.104.115.10
#FFFFFF5.101.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E3
Deuteranopia (green-blind)
#006BDC
Tritanopia (blue-blind)
#617291
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7d51df;
/* rgb */ color: rgb(125, 81, 223);
/* oklch */ color: oklch(56.0% 0.205 292.8);
Tailwind
colors: {
  custom: {
    50: '#aa84ea',
    500: '#7d51df',
    950: '#000000',
  },
}
SCSS
$custom: #7d51df;
$custom-light: #aa84ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51df",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 258.592,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.55959,
    "c": 0.20535,
    "h": 292.8
  },
  "luminance": 0.15573
}

Semantic roles & 50–950 ramp

primary
#7D51DF
secondary
#D0E1AA
accent
#EC3CB5
background
#FBF8FE
surface
#F6EFFD
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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