#7D2D9C#7D2D9C

#7D2D9C is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.179 H 314.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7D2D9C
RGBrgb(125, 45, 156)
HSLhsl(283, 55%, 39%)
HSVhsv(283, 71%, 61%)
CMYKcmyk(19.9%, 71.2%, 0%, 38.8%)
CIE-LABlab(35.28, 51.53, -44.98)
CIE-LCHlch(35.28, 68.40, 318.88°)
OKLaboklab(46.47% 0.126 -0.1267)
OKLCHoklch(46.47% 0.179 314.8)
XYZxyz(15.3956, 8.6376, 32.3023)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D9C #4C9C2D
analogous
#452D9C #7D2D9C #9C2D84
triadic
#7D2D9C #9C7D2D #2D9C7D
tetradic
#7D2D9C #9C452D #4C9C2D #2D849C
square
#7D2D9C #9C452D #4C9C2D #2D849C
split-complementary
#7D2D9C #849C2D #2D9C45
monochromatic
#31123D #571F6D #7D2D9C #A13FC8 #B86ED5

Accessibility & contrast

On white

7.70
#7D2D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7D2D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D9C
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D9C#FFFFFF#000000##FFFFFF
##7D2D9C1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9F
Deuteranopia (green-blind)
#295599
Tritanopia (blue-blind)
#7A4461
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2d9c;
/* rgb */ color: rgb(125, 45, 156);
/* oklch */ color: oklch(46.5% 0.179 314.8);
Tailwind
colors: {
  custom: {
    50: '#a66dba',
    500: '#7d2d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d9c;
$custom-light: #a66dba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d9c",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 156
  },
  "hsl": {
    "h": 283.243,
    "s": 55.224,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46471,
    "c": 0.17864,
    "h": 314.8
  },
  "luminance": 0.08637
}

Semantic roles & 50–950 ramp

primary
#7D2D9C
secondary
#80BC68
accent
#DF4973
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7D2D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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