#7D51DD#7D51DD

#7D51DD is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.8% C 0.203 H 293.1°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#7D51DD
RGBrgb(125, 81, 221)
HSLhsl(259, 67%, 59%)
HSVhsv(259, 63%, 87%)
CMYKcmyk(43.4%, 63.3%, 0%, 13.3%)
CIE-LABlab(46.26, 49.60, -65.34)
CIE-LCHlch(46.26, 82.03, 307.21°)
OKLaboklab(55.81% 0.0798 -0.1866)
OKLCHoklch(55.81% 0.203 293.1)
XYZxyz(24.4475, 15.4646, 70.0895)
Luminance0.1547 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51DD #B1DD51
analogous
#516BDD #7D51DD #C351DD
triadic
#7D51DD #DD7D51 #51DD7D
tetradic
#7D51DD #DD516B #B1DD51 #51DDC3
square
#7D51DD #DD516B #B1DD51 #51DDC3
split-complementary
#7D51DD #DDC351 #6BDD51
monochromatic
#431D96 #5A27C9 #7D51DD #A384E7 #CAB7F1

Accessibility & contrast

On white

5.13
#7D51DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#7D51DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51DD
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51DD#FFFFFF#000000##FFFFFF
##7D51DD1.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE1
Deuteranopia (green-blind)
#006BDA
Tritanopia (blue-blind)
#627290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7d51dd;
/* rgb */ color: rgb(125, 81, 221);
/* oklch */ color: oklch(55.8% 0.203 293.1);
Tailwind
colors: {
  custom: {
    50: '#a984e8',
    500: '#7d51dd',
    950: '#000000',
  },
}
SCSS
$custom: #7d51dd;
$custom-light: #a984e8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51dd",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 221
  },
  "hsl": {
    "h": 258.857,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.5581,
    "c": 0.20298,
    "h": 293.1
  },
  "luminance": 0.15465
}

Semantic roles & 50–950 ramp

primary
#7D51DD
secondary
#CFE0AA
accent
#EA3EB4
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51DD

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

Preview Lab → · Contrast checker → · Palette generator →

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