#7E2DC8#7E2DC8

#7E2DC8 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.222 H 302.5°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#7E2DC8
RGBrgb(126, 45, 200)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 78%, 78%)
CMYKcmyk(37%, 77.5%, 0%, 21.6%)
CIE-LABlab(38.69, 61.47, -65.56)
CIE-LCHlch(38.69, 89.87, 313.16°)
OKLaboklab(49.94% 0.1192 -0.1871)
OKLCHoklch(49.94% 0.222 302.5)
XYZxyz(19.9654, 10.4825, 55.6039)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DC8 #77C82D
analogous
#312DC8 #7E2DC8 #C82DC4
triadic
#7E2DC8 #C87E2D #2DC87E
tetradic
#7E2DC8 #C8312D #77C82D #2DC4C8
square
#7E2DC8 #C8312D #77C82D #2DC4C8
split-complementary
#7E2DC8 #C4C82D #2DC831
monochromatic
#3F1764 #5F2296 #7E2DC8 #9C59DA #BA8BE5

Accessibility & contrast

On white

6.78
#7E2DC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E2DC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DC8
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DC8#FFFFFF#000000##FFFFFF
##7E2DC81.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6E567A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2dc8;
/* rgb */ color: rgb(126, 45, 200);
/* oklch */ color: oklch(49.9% 0.222 302.5);
Tailwind
colors: {
  custom: {
    50: '#aa6fda',
    500: '#7e2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dc8;
$custom-light: #aa6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dc8",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 271.355,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49944,
    "c": 0.22185,
    "h": 302.5
  },
  "luminance": 0.10483
}

Semantic roles & 50–950 ramp

primary
#7E2DC8
secondary
#A7CF82
accent
#E64190
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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