#7E2DC2#7E2DC2

#7E2DC2 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.216 H 304.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#7E2DC2
RGBrgb(126, 45, 194)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 77%, 76%)
CMYKcmyk(35.1%, 76.8%, 0%, 23.9%)
CIE-LABlab(38.21, 60.10, -62.84)
CIE-LCHlch(38.21, 86.96, 313.72°)
OKLaboklab(49.46% 0.1207 -0.1791)
OKLCHoklch(49.46% 0.216 304)
XYZxyz(19.2779, 10.2075, 51.9831)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DC2 #71C22D
analogous
#332DC2 #7E2DC2 #C22DBC
triadic
#7E2DC2 #C27E2D #2DC27E
tetradic
#7E2DC2 #C2332D #71C22D #2DBCC2
square
#7E2DC2 #C2332D #71C22D #2DBCC2
split-complementary
#7E2DC2 #BCC22D #2DC233
monochromatic
#3D165F #5E2190 #7E2DC2 #9C55D7 #B986E3

Accessibility & contrast

On white

6.90
#7E2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7E2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DC2
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DC2#FFFFFF#000000##FFFFFF
##7E2DC21.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#705477
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2dc2;
/* rgb */ color: rgb(126, 45, 194);
/* oklch */ color: oklch(49.5% 0.216 304.0);
Tailwind
colors: {
  custom: {
    50: '#a96fd5',
    500: '#7e2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dc2;
$custom-light: #a96fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dc2",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 272.617,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49456,
    "c": 0.216,
    "h": 304
  },
  "luminance": 0.10207
}

Semantic roles & 50–950 ramp

primary
#7E2DC2
secondary
#A2CD7E
accent
#E5428D
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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