#7D2EC7#7D2EC7

#7D2EC7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.220 H 302.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#7D2EC7
RGBrgb(125, 46, 199)
HSLhsl(271, 62%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37.2%, 76.9%, 0%, 22%)
CIE-LABlab(38.62, 60.69, -65.11)
CIE-LCHlch(38.62, 89.01, 312.99°)
OKLaboklab(49.84% 0.1172 -0.1858)
OKLCHoklch(49.84% 0.22 302.2)
XYZxyz(19.7408, 10.4374, 54.9964)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2EC7 #78C72E
analogous
#302EC7 #7D2EC7 #C72EC5
triadic
#7D2EC7 #C77D2E #2EC77D
tetradic
#7D2EC7 #C7302E #78C72E #2EC5C7
square
#7D2EC7 #C7302E #78C72E #2EC5C7
split-complementary
#7D2EC7 #C5C72E #2EC730
monochromatic
#3F1764 #5E2395 #7D2EC7 #9B59D9 #B98BE4

Accessibility & contrast

On white

6.80
#7D2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7D2EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2EC7
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2EC7#FFFFFF#000000##FFFFFF
##7D2EC71.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#6D567A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d2ec7;
/* rgb */ color: rgb(125, 46, 199);
/* oklch */ color: oklch(49.8% 0.220 302.2);
Tailwind
colors: {
  custom: {
    50: '#a970d9',
    500: '#7d2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ec7;
$custom-light: #a970d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ec7",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 270.98,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49836,
    "c": 0.21972,
    "h": 302.2
  },
  "luminance": 0.10437
}

Semantic roles & 50–950 ramp

primary
#7D2EC7
secondary
#A7CE83
accent
#E64291
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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