#7D51DE#7D51DE

#7D51DE is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 55.9% C 0.204 H 293.0°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#7D51DE
RGBrgb(125, 81, 222)
HSLhsl(259, 68%, 59%)
HSVhsv(259, 64%, 87%)
CMYKcmyk(43.7%, 63.5%, 0%, 12.9%)
CIE-LABlab(46.34, 49.87, -65.79)
CIE-LCHlch(46.34, 82.55, 307.16°)
OKLaboklab(55.88% 0.0797 -0.188)
OKLCHoklch(55.88% 0.204 293)
XYZxyz(24.5811, 15.5180, 70.7932)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51DE #B2DE51
analogous
#516CDE #7D51DE #C351DE
triadic
#7D51DE #DE7D51 #51DE7D
tetradic
#7D51DE #DE516C #B2DE51 #51DEC3
square
#7D51DE #DE516C #B2DE51 #51DEC3
split-complementary
#7D51DE #DEC351 #6CDE51
monochromatic
#431D98 #5A27CB #7D51DE #A384E8 #CAB8F2

Accessibility & contrast

On white

5.12
#7D51DE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#7D51DE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51DE
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51DE#FFFFFF#000000##FFFFFF
##7D51DE1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070E2
Deuteranopia (green-blind)
#006BDB
Tritanopia (blue-blind)
#617290
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #7d51de;
/* rgb */ color: rgb(125, 81, 222);
/* oklch */ color: oklch(55.9% 0.204 293.0);
Tailwind
colors: {
  custom: {
    50: '#a984e9',
    500: '#7d51de',
    950: '#000000',
  },
}
SCSS
$custom: #7d51de;
$custom-light: #a984e9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51de",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 222
  },
  "hsl": {
    "h": 258.723,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.55884,
    "c": 0.20416,
    "h": 293
  },
  "luminance": 0.15519
}

Semantic roles & 50–950 ramp

primary
#7D51DE
secondary
#D0E1AA
accent
#EB3DB5
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51DE

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

Preview Lab → · Contrast checker → · Palette generator →

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