#7D51DB#7D51DB

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

Color values

HEX#7D51DB
RGBrgb(125, 81, 219)
HSLhsl(259, 66%, 59%)
HSVhsv(259, 63%, 86%)
CMYKcmyk(42.9%, 63%, 0%, 14.1%)
CIE-LABlab(46.12, 49.06, -64.43)
CIE-LCHlch(46.12, 80.98, 307.29°)
OKLaboklab(55.66% 0.08 -0.184)
OKLCHoklch(55.66% 0.201 293.5)
XYZxyz(24.1826, 15.3586, 68.6945)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D51DB #AFDB51
analogous
#516ADB #7D51DB #C251DB
triadic
#7D51DB #DB7D51 #51DB7D
tetradic
#7D51DB #DB516A #AFDB51 #51DBC2
square
#7D51DB #DB516A #AFDB51 #51DBC2
split-complementary
#7D51DB #DBC251 #6ADB51
monochromatic
#441E93 #5B29C6 #7D51DB #A384E5 #C9B6F0

Accessibility & contrast

On white

5.16
#7D51DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#7D51DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D51DB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D51DB#FFFFFF#000000##FFFFFF
##7D51DB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FDF
Deuteranopia (green-blind)
#006BD8
Tritanopia (blue-blind)
#63718F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7d51db;
/* rgb */ color: rgb(125, 81, 219);
/* oklch */ color: oklch(55.7% 0.201 293.5);
Tailwind
colors: {
  custom: {
    50: '#a984e7',
    500: '#7d51db',
    950: '#000000',
  },
}
SCSS
$custom: #7d51db;
$custom-light: #a984e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d51db",
  "rgb": {
    "r": 125,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 259.13,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.55662,
    "c": 0.2006,
    "h": 293.5
  },
  "luminance": 0.15359
}

Semantic roles & 50–950 ramp

primary
#7D51DB
secondary
#CEDFA9
accent
#E93FB3
background
#FAF8FE
surface
#F5EFFD
border
#CFCAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #7D51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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