#7D2ED7#7D2ED7

#7D2ED7 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 51.2% C 0.235 H 298.7°. Best body text is #FFFFFF at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#7D2ED7
RGBrgb(125, 46, 215)
HSLhsl(268, 68%, 51%)
HSVhsv(268, 79%, 84%)
CMYKcmyk(41.9%, 78.6%, 0%, 15.7%)
CIE-LABlab(39.95, 64.42, -72.20)
CIE-LCHlch(39.95, 96.76, 311.74°)
OKLaboklab(51.18% 0.1129 -0.2066)
OKLCHoklch(51.18% 0.235 298.7)
XYZxyz(21.6970, 11.2199, 65.2993)
Luminance0.1122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2ED7 #88D72E
analogous
#2E33D7 #7D2ED7 #D12ED7
triadic
#7D2ED7 #D77D2E #2ED77D
tetradic
#7D2ED7 #D72E33 #88D72E #2ED7D1
square
#7D2ED7 #D72E33 #88D72E #2ED7D1
split-complementary
#7D2ED7 #D7D12E #33D72E
monochromatic
#421674 #5F20A8 #7D2ED7 #9D61E1 #BD95EB

Accessibility & contrast

On white

6.47
#7D2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#7D2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2ED7
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2ED7#FFFFFF#000000##FFFFFF
##7D2ED71.006.473.246.47
#FFFFFF6.471.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#665D83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7d2ed7;
/* rgb */ color: rgb(125, 46, 215);
/* oklch */ color: oklch(51.2% 0.235 298.7);
Tailwind
colors: {
  custom: {
    50: '#ab70e5',
    500: '#7d2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7d2ed7;
$custom-light: #ab70e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2ed7",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 268.047,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51176,
    "c": 0.23546,
    "h": 298.7
  },
  "luminance": 0.1122
}

Semantic roles & 50–950 ramp

primary
#7D2ED7
secondary
#B3D68B
accent
#EB3D9A
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7D2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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