#7D2C9B#7D2C9B

#7D2C9B is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.179 H 315.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7D2C9B
RGBrgb(125, 44, 155)
HSLhsl(284, 56%, 39%)
HSVhsv(284, 72%, 61%)
CMYKcmyk(19.4%, 71.6%, 0%, 39.2%)
CIE-LABlab(35.06, 51.75, -44.72)
CIE-LCHlch(35.06, 68.40, 319.16°)
OKLaboklab(46.29% 0.1271 -0.1259)
OKLCHoklch(46.29% 0.179 315.3)
XYZxyz(15.2736, 8.5285, 31.8456)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2C9B #4A9B2C
analogous
#462C9B #7D2C9B #9B2C82
triadic
#7D2C9B #9B7D2C #2C9B7D
tetradic
#7D2C9B #9B462C #4A9B2C #2C829B
square
#7D2C9B #9B462C #4A9B2C #2C829B
split-complementary
#7D2C9B #829B2C #2C9B46
monochromatic
#30113C #571E6B #7D2C9B #A23CC8 #B96CD5

Accessibility & contrast

On white

7.76
#7D2C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7D2C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2C9B
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2C9B#FFFFFF#000000##FFFFFF
##7D2C9B1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#295598
Tritanopia (blue-blind)
#7B4360
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d2c9b;
/* rgb */ color: rgb(125, 44, 155);
/* oklch */ color: oklch(46.3% 0.179 315.3);
Tailwind
colors: {
  custom: {
    50: '#a66db9',
    500: '#7d2c9b',
    950: '#000000',
  },
}
SCSS
$custom: #7d2c9b;
$custom-light: #a66db9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2c9b",
  "rgb": {
    "r": 125,
    "g": 44,
    "b": 155
  },
  "hsl": {
    "h": 283.784,
    "s": 55.779,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46295,
    "c": 0.17894,
    "h": 315.3
  },
  "luminance": 0.08528
}

Semantic roles & 50–950 ramp

primary
#7D2C9B
secondary
#7EBC67
accent
#DF4971
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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