#7E2DD2#7E2DD2

#7E2DD2 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.8% C 0.232 H 300.2°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#7E2DD2
RGBrgb(126, 45, 210)
HSLhsl(269, 65%, 50%)
HSVhsv(269, 79%, 82%)
CMYKcmyk(40%, 78.6%, 0%, 17.6%)
CIE-LABlab(39.52, 63.78, -70.01)
CIE-LCHlch(39.52, 94.70, 312.33°)
OKLaboklab(50.78% 0.1165 -0.2002)
OKLCHoklch(50.78% 0.232 300.2)
XYZxyz(21.1725, 10.9653, 61.9613)
Luminance0.1097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DD2 #81D22D
analogous
#2D2ED2 #7E2DD2 #D12DD2
triadic
#7E2DD2 #D27E2D #2DD27E
tetradic
#7E2DD2 #D22D2E #81D22D #2DD2D1
square
#7E2DD2 #D22D2E #81D22D #2DD2D1
split-complementary
#7E2DD2 #D2D12D #2ED22D
monochromatic
#42176D #6022A0 #7E2DD2 #9D5FDD #BC92E8

Accessibility & contrast

On white

6.58
#7E2DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7E2DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2DD2
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DD2#FFFFFF#000000##FFFFFF
##7E2DD21.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DD6
Deuteranopia (green-blind)
#005CCF
Tritanopia (blue-blind)
#6A5A80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e2dd2;
/* rgb */ color: rgb(126, 45, 210);
/* oklch */ color: oklch(50.8% 0.232 300.2);
Tailwind
colors: {
  custom: {
    50: '#ab70e1',
    500: '#7e2dd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dd2;
$custom-light: #ab70e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dd2",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 210
  },
  "hsl": {
    "h": 269.455,
    "s": 64.706,
    "l": 50
  },
  "oklch": {
    "l": 0.50777,
    "c": 0.23161,
    "h": 300.2
  },
  "luminance": 0.10966
}

Semantic roles & 50–950 ramp

primary
#7E2DD2
secondary
#AED288
accent
#E84095
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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