#7E1DBB#7E1DBB

#7E1DBB is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.6% C 0.223 H 307.0°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7E1DBB
RGBrgb(126, 29, 187)
HSLhsl(277, 73%, 42%)
HSVhsv(277, 84%, 73%)
CMYKcmyk(32.6%, 84.5%, 0%, 26.7%)
CIE-LABlab(35.80, 63.93, -62.67)
CIE-LCHlch(35.80, 89.53, 315.57°)
OKLaboklab(47.6% 0.1344 -0.1785)
OKLCHoklch(47.6% 0.223 307)
XYZxyz(18.0112, 8.9024, 47.7736)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1DBB #5ABB1D
analogous
#2F1DBB #7E1DBB #BB1DA9
triadic
#7E1DBB #BB7E1D #1DBB7E
tetradic
#7E1DBB #BB2F1D #5ABB1D #1DA9BB
square
#7E1DBB #BB2F1D #5ABB1D #1DA9BB
split-complementary
#7E1DBB #A9BB1D #1DBB2F
monochromatic
#370D51 #5A1586 #7E1DBB #9E35E0 #B76AE8

Accessibility & contrast

On white

7.55
#7E1DBB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E1DBB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1DBB
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1DBB#FFFFFF#000000##FFFFFF
##7E1DBB1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051BF
Deuteranopia (green-blind)
#0055B8
Tritanopia (blue-blind)
#734A70
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e1dbb;
/* rgb */ color: rgb(126, 29, 187);
/* oklch */ color: oklch(47.6% 0.223 307.0);
Tailwind
colors: {
  custom: {
    50: '#aa68d1',
    500: '#7e1dbb',
    950: '#000000',
  },
}
SCSS
$custom: #7e1dbb;
$custom-light: #aa68d1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1dbb",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 187
  },
  "hsl": {
    "h": 276.835,
    "s": 73.148,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47597,
    "c": 0.22343,
    "h": 307
  },
  "luminance": 0.08902
}

Semantic roles & 50–950 ramp

primary
#7E1DBB
secondary
#8ECE66
accent
#F0387F
background
#FBF6FC
surface
#F6EBF9
border
#D0C6D2
text
#110714
muted
#807A82

Preview Lab

Preview with #7E1DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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