#7D1DB3#7D1DB3

#7D1DB3 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.8% C 0.216 H 308.8°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7D1DB3
RGBrgb(125, 29, 179)
HSLhsl(278, 72%, 41%)
HSVhsv(278, 84%, 70%)
CMYKcmyk(30.2%, 83.8%, 0%, 29.8%)
CIE-LABlab(34.99, 62.10, -59.25)
CIE-LCHlch(34.99, 85.83, 316.34°)
OKLaboklab(46.81% 0.1354 -0.1685)
OKLCHoklch(46.81% 0.216 308.8)
XYZxyz(17.0318, 8.4937, 43.3813)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1DB3 #53B31D
analogous
#321DB3 #7D1DB3 #B31D9E
triadic
#7D1DB3 #B37D1D #1DB37D
tetradic
#7D1DB3 #B3321D #53B31D #1D9EB3
square
#7D1DB3 #B3321D #53B31D #1D9EB3
split-complementary
#7D1DB3 #9EB31D #1DB332
monochromatic
#330C4A #58147E #7D1DB3 #9F30DD #B764E6

Accessibility & contrast

On white

7.78
#7D1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1DB3
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1DB3#FFFFFF#000000##FFFFFF
##7D1DB31.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#74466B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d1db3;
/* rgb */ color: rgb(125, 29, 179);
/* oklch */ color: oklch(46.8% 0.216 308.8);
Tailwind
colors: {
  custom: {
    50: '#a867cb',
    500: '#7d1db3',
    950: '#000000',
  },
}
SCSS
$custom: #7d1db3;
$custom-light: #a867cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1db3",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 278.4,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46805,
    "c": 0.21612,
    "h": 308.8
  },
  "luminance": 0.08493
}

Semantic roles & 50–950 ramp

primary
#7D1DB3
secondary
#87CB61
accent
#EF397A
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7D1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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