#7D51D8#7D51D8

#7D51D8 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 55.4% C 0.197 H 294.0°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#7D51D8
RGBrgb(125, 81, 216)
HSLhsl(260, 63%, 58%)
HSVhsv(260, 63%, 85%)
CMYKcmyk(42.1%, 62.5%, 0%, 15.3%)
CIE-LABlab(45.91, 48.26, -63.06)
CIE-LCHlch(45.91, 79.41, 307.43°)
OKLaboklab(55.44% 0.0802 -0.1799)
OKLCHoklch(55.44% 0.197 294)
XYZxyz(23.7912, 15.2021, 66.6332)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51D8 #ACD851
analogous
#5168D8 #7D51D8 #C151D8
triadic
#7D51D8 #D87D51 #51D87D
tetradic
#7D51D8 #D85168 #ACD851 #51D8C1
square
#7D51D8 #D85168 #ACD851 #51D8C1
split-complementary
#7D51D8 #D8C151 #68D851
monochromatic
#44208F #5C2BC1 #7D51D8 #A283E3 #C8B5EE

Accessibility & contrast

On white

5.20
#7D51D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#7D51D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51D8
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51D8#FFFFFF#000000##FFFFFF
##7D51D81.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#64708D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d51d8;
/* rgb */ color: rgb(125, 81, 216);
/* oklch */ color: oklch(55.4% 0.197 294.0);
Tailwind
colors: {
  custom: {
    50: '#a984e5',
    500: '#7d51d8',
    950: '#000000',
  },
}
SCSS
$custom: #7d51d8;
$custom-light: #a984e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51d8",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 216
  },
  "hsl": {
    "h": 259.556,
    "s": 63.38,
    "l": 58.235
  },
  "oklch": {
    "l": 0.55441,
    "c": 0.19701,
    "h": 294
  },
  "luminance": 0.15203
}

Semantic roles & 50–950 ramp

primary
#7D51D8
secondary
#CCDDA8
accent
#E641B1
background
#FAF8FE
surface
#F4EFFC
border
#CECAD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7D51D8

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

Preview Lab → · Contrast checker → · Palette generator →

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