#7D2DC9#7D2DC9

#7D2DC9 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.9% C 0.223 H 301.9°. Best body text is #FFFFFF at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#7D2DC9
RGBrgb(125, 45, 201)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 78%, 79%)
CMYKcmyk(37.8%, 77.6%, 0%, 21.2%)
CIE-LABlab(38.64, 61.54, -66.23)
CIE-LCHlch(38.64, 90.41, 312.90°)
OKLaboklab(49.91% 0.1175 -0.1891)
OKLCHoklch(49.91% 0.223 301.9)
XYZxyz(19.9359, 10.4537, 56.2145)
Luminance0.1045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2DC9 #79C92D
analogous
#2F2DC9 #7D2DC9 #C92DC7
triadic
#7D2DC9 #C97D2D #2DC97D
tetradic
#7D2DC9 #C92F2D #79C92D #2DC7C9
square
#7D2DC9 #C92F2D #79C92D #2DC7C9
split-complementary
#7D2DC9 #C7C92D #2DC92F
monochromatic
#3F1765 #5E2297 #7D2DC9 #9B59DA #B98BE5

Accessibility & contrast

On white

6.79
#7D2DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D2DC9
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2DC9#FFFFFF#000000##FFFFFF
##7D2DC91.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#6C577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7d2dc9;
/* rgb */ color: rgb(125, 45, 201);
/* oklch */ color: oklch(49.9% 0.223 301.9);
Tailwind
colors: {
  custom: {
    50: '#a96fda',
    500: '#7d2dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7d2dc9;
$custom-light: #a96fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2dc9",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 270.769,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49906,
    "c": 0.22266,
    "h": 301.9
  },
  "luminance": 0.10454
}

Semantic roles & 50–950 ramp

primary
#7D2DC9
secondary
#A8CF83
accent
#E64192
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7D2DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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