#7D2DC5#7D2DC5

#7D2DC5 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.219 H 302.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7D2DC5
RGBrgb(125, 45, 197)
HSLhsl(272, 63%, 47%)
HSVhsv(272, 77%, 77%)
CMYKcmyk(36.5%, 77.2%, 0%, 22.7%)
CIE-LABlab(38.32, 60.62, -64.43)
CIE-LCHlch(38.32, 88.46, 313.25°)
OKLaboklab(49.58% 0.1186 -0.1838)
OKLCHoklch(49.58% 0.219 302.8)
XYZxyz(19.4715, 10.2679, 53.7686)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DC5 #75C52D
analogous
#312DC5 #7D2DC5 #C52DC1
triadic
#7D2DC5 #C57D2D #2DC57D
tetradic
#7D2DC5 #C5312D #75C52D #2DC1C5
square
#7D2DC5 #C5312D #75C52D #2DC1C5
split-complementary
#7D2DC5 #C1C52D #2DC531
monochromatic
#3E1661 #5D2293 #7D2DC5 #9B57D9 #B988E4

Accessibility & contrast

On white

6.88
#7D2DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7D2DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D2DC5
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DC5#FFFFFF#000000##FFFFFF
##7D2DC51.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#005AC2
Tritanopia (blue-blind)
#6E5578
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7d2dc5;
/* rgb */ color: rgb(125, 45, 197);
/* oklch */ color: oklch(49.6% 0.219 302.8);
Tailwind
colors: {
  custom: {
    50: '#a96fd8',
    500: '#7d2dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dc5;
$custom-light: #a96fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dc5",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 271.579,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49577,
    "c": 0.21874,
    "h": 302.8
  },
  "luminance": 0.10268
}

Semantic roles & 50–950 ramp

primary
#7D2DC5
secondary
#A5CE80
accent
#E64290
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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