#7D1ED5#7D1ED5

#7D1ED5 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.8% C 0.246 H 300.2°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7D1ED5
RGBrgb(125, 30, 213)
HSLhsl(271, 75%, 48%)
HSVhsv(271, 86%, 84%)
CMYKcmyk(41.3%, 85.9%, 0%, 16.5%)
CIE-LABlab(38.01, 69.14, -74.23)
CIE-LCHlch(38.01, 101.44, 312.97°)
OKLaboklab(49.78% 0.1236 -0.2124)
OKLCHoklch(49.78% 0.246 300.2)
XYZxyz(20.9289, 10.0924, 63.7833)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1ED5 #76D51E
analogous
#221ED5 #7D1ED5 #D51ED1
triadic
#7D1ED5 #D57D1E #1ED57D
tetradic
#7D1ED5 #D5221E #76D51E #1ED1D5
square
#7D1ED5 #D5221E #76D51E #1ED1D5
split-complementary
#7D1ED5 #D1D51E #1ED522
monochromatic
#3E0F6A #5E169F #7D1ED5 #9B4BE6 #B980ED

Accessibility & contrast

On white

6.96
#7D1ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7D1ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D1ED5
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1ED5#FFFFFF#000000##FFFFFF
##7D1ED51.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059DA
Deuteranopia (green-blind)
#0058D2
Tritanopia (blue-blind)
#68577F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7d1ed5;
/* rgb */ color: rgb(125, 30, 213);
/* oklch */ color: oklch(49.8% 0.246 300.2);
Tailwind
colors: {
  custom: {
    50: '#ab6ae3',
    500: '#7d1ed5',
    950: '#000000',
  },
}
SCSS
$custom: #7d1ed5;
$custom-light: #ab6ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1ed5",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 213
  },
  "hsl": {
    "h": 271.148,
    "s": 75.309,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49782,
    "c": 0.24581,
    "h": 300.2
  },
  "luminance": 0.10093
}

Semantic roles & 50–950 ramp

primary
#7D1ED5
secondary
#A6D679
accent
#F23690
background
#FBF6FE
surface
#F6ECFC
border
#D0C7D5
text
#110716
muted
#807A84

Preview Lab

Preview with #7D1ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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