#7E2DC5#7E2DC5

#7E2DC5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.219 H 303.2°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7E2DC5
RGBrgb(126, 45, 197)
HSLhsl(272, 63%, 47%)
HSVhsv(272, 77%, 77%)
CMYKcmyk(36%, 77.2%, 0%, 22.7%)
CIE-LABlab(38.45, 60.78, -64.21)
CIE-LCHlch(38.45, 88.41, 313.43°)
OKLaboklab(49.7% 0.12 -0.1831)
OKLCHoklch(49.7% 0.219 303.2)
XYZxyz(19.6182, 10.3436, 53.7755)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DC5 #74C52D
analogous
#322DC5 #7E2DC5 #C52DC0
triadic
#7E2DC5 #C57E2D #2DC57E
tetradic
#7E2DC5 #C5322D #74C52D #2DC0C5
square
#7E2DC5 #C5322D #74C52D #2DC0C5
split-complementary
#7E2DC5 #C0C52D #2DC532
monochromatic
#3E1661 #5E2293 #7E2DC5 #9C57D9 #B988E4

Accessibility & contrast

On white

6.84
#7E2DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E2DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DC5
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DC5#FFFFFF#000000##FFFFFF
##7E2DC51.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#6F5578
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2dc5;
/* rgb */ color: rgb(126, 45, 197);
/* oklch */ color: oklch(49.7% 0.219 303.2);
Tailwind
colors: {
  custom: {
    50: '#aa6fd8',
    500: '#7e2dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dc5;
$custom-light: #aa6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dc5",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 271.974,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49699,
    "c": 0.21893,
    "h": 303.2
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

primary
#7E2DC5
secondary
#A4CE80
accent
#E6428F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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