#7D2D9B#7D2D9B

#7D2D9B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.178 H 315.2°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#7D2D9B
RGBrgb(125, 45, 155)
HSLhsl(284, 55%, 39%)
HSVhsv(284, 71%, 61%)
CMYKcmyk(19.4%, 71%, 0%, 39.2%)
CIE-LABlab(35.21, 51.32, -44.48)
CIE-LCHlch(35.21, 67.92, 319.09°)
OKLaboklab(46.4% 0.1261 -0.1252)
OKLCHoklch(46.4% 0.178 315.2)
XYZxyz(15.3113, 8.6039, 31.8582)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D9B #4B9B2D
analogous
#462D9B #7D2D9B #9B2D82
triadic
#7D2D9B #9B7D2D #2D9B7D
tetradic
#7D2D9B #9B462D #4B9B2D #2D829B
square
#7D2D9B #9B462D #4B9B2D #2D829B
split-complementary
#7D2D9B #829B2D #2D9B46
monochromatic
#31113C #571F6C #7D2D9B #A23EC7 #B96ED5

Accessibility & contrast

On white

7.72
#7D2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7D2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D9B
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D9B#FFFFFF#000000##FFFFFF
##7D2D9B1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#2A5599
Tritanopia (blue-blind)
#7B4361
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7d2d9b;
/* rgb */ color: rgb(125, 45, 155);
/* oklch */ color: oklch(46.4% 0.178 315.2);
Tailwind
colors: {
  custom: {
    50: '#a66db9',
    500: '#7d2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d9b;
$custom-light: #a66db9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d9b",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 283.636,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46402,
    "c": 0.17768,
    "h": 315.2
  },
  "luminance": 0.08603
}

Semantic roles & 50–950 ramp

primary
#7D2D9B
secondary
#7FBC68
accent
#DE4972
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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