#7E2DC1#7E2DC1

#7E2DC1 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.4% C 0.215 H 304.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2DC1
RGBrgb(126, 45, 193)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 77%, 76%)
CMYKcmyk(34.7%, 76.7%, 0%, 24.3%)
CIE-LABlab(38.13, 59.87, -62.39)
CIE-LCHlch(38.13, 86.47, 313.82°)
OKLaboklab(49.38% 0.121 -0.1778)
OKLCHoklch(49.38% 0.215 304.2)
XYZxyz(19.1660, 10.1627, 51.3936)
Luminance0.1016 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DC1 #70C12D
analogous
#342DC1 #7E2DC1 #C12DBA
triadic
#7E2DC1 #C17E2D #2DC17E
tetradic
#7E2DC1 #C1342D #70C12D #2DBAC1
square
#7E2DC1 #C1342D #70C12D #2DBAC1
split-complementary
#7E2DC1 #BAC12D #2DC134
monochromatic
#3D165E #5E218F #7E2DC1 #9C54D7 #B986E3

Accessibility & contrast

On white

6.92
#7E2DC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#7E2DC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DC1
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DC1#FFFFFF#000000##FFFFFF
##7E2DC11.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#715376
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2dc1;
/* rgb */ color: rgb(126, 45, 193);
/* oklch */ color: oklch(49.4% 0.215 304.2);
Tailwind
colors: {
  custom: {
    50: '#a96fd5',
    500: '#7e2dc1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dc1;
$custom-light: #a96fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dc1",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 272.838,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.49376,
    "c": 0.21502,
    "h": 304.2
  },
  "luminance": 0.10163
}

Semantic roles & 50–950 ramp

primary
#7E2DC1
secondary
#A1CC7E
accent
#E5438C
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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