#7E2DCC#7E2DCC

#7E2DCC is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.226 H 301.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#7E2DCC
RGBrgb(126, 45, 204)
HSLhsl(271, 64%, 49%)
HSVhsv(271, 78%, 80%)
CMYKcmyk(38.2%, 77.9%, 0%, 20%)
CIE-LABlab(39.02, 62.39, -67.35)
CIE-LCHlch(39.02, 91.81, 312.81°)
OKLaboklab(50.27% 0.1182 -0.1924)
OKLCHoklch(50.27% 0.226 301.6)
XYZxyz(20.4390, 10.6719, 58.0981)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DCC #7BCC2D
analogous
#2F2DCC #7E2DCC #CC2DCB
triadic
#7E2DCC #CC7E2D #2DCC7E
tetradic
#7E2DCC #CC2F2D #7BCC2D #2DCBCC
square
#7E2DCC #CC2F2D #7BCC2D #2DCBCC
split-complementary
#7E2DCC #CBCC2D #2DCC2F
monochromatic
#401768 #5F229A #7E2DCC #9C5BDB #BB8DE6

Accessibility & contrast

On white

6.70
#7E2DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7E2DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DCC
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DCC#FFFFFF#000000##FFFFFF
##7E2DCC1.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#6D587C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2dcc;
/* rgb */ color: rgb(126, 45, 204);
/* oklch */ color: oklch(50.3% 0.226 301.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fdd',
    500: '#7e2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dcc;
$custom-light: #aa6fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dcc",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 270.566,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50274,
    "c": 0.22575,
    "h": 301.6
  },
  "luminance": 0.10672
}

Semantic roles & 50–950 ramp

primary
#7E2DCC
secondary
#AAD085
accent
#E74192
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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