#7E1DB3#7E1DB3

#7E1DB3 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.9% C 0.216 H 309.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#7E1DB3
RGBrgb(126, 29, 179)
HSLhsl(279, 72%, 41%)
HSVhsv(279, 84%, 70%)
CMYKcmyk(29.6%, 83.8%, 0%, 29.8%)
CIE-LABlab(35.14, 62.26, -59.00)
CIE-LCHlch(35.14, 85.77, 316.54°)
OKLaboklab(46.94% 0.1367 -0.1677)
OKLCHoklch(46.94% 0.216 309.2)
XYZxyz(17.1786, 8.5694, 43.3882)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DB3 #52B31D
analogous
#331DB3 #7E1DB3 #B31D9D
triadic
#7E1DB3 #B37E1D #1DB37E
tetradic
#7E1DB3 #B3331D #52B31D #1D9DB3
square
#7E1DB3 #B3331D #52B31D #1D9DB3
split-complementary
#7E1DB3 #9DB31D #1DB333
monochromatic
#340C4A #59147E #7E1DB3 #A030DD #B864E6

Accessibility & contrast

On white

7.74
#7E1DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E1DB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1DB3
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1DB3#FFFFFF#000000##FFFFFF
##7E1DB31.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FB7
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#76466B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e1db3;
/* rgb */ color: rgb(126, 29, 179);
/* oklch */ color: oklch(46.9% 0.216 309.2);
Tailwind
colors: {
  custom: {
    50: '#a968cb',
    500: '#7e1db3',
    950: '#000000',
  },
}
SCSS
$custom: #7e1db3;
$custom-light: #a968cb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1db3",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 278.8,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4694,
    "c": 0.21638,
    "h": 309.2
  },
  "luminance": 0.08569
}

Semantic roles & 50–950 ramp

primary
#7E1DB3
secondary
#86CB61
accent
#EF3979
background
#FAF6FC
surface
#F5EBF9
border
#CFC6D2
text
#110713
muted
#807A82

Preview Lab

Preview with #7E1DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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