#7D2D8D#7D2D8D

#7D2D8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.164 H 320.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7D2D8D
RGBrgb(125, 45, 141)
HSLhsl(290, 52%, 36%)
HSVhsv(290, 68%, 55%)
CMYKcmyk(11.3%, 68.1%, 0%, 44.7%)
CIE-LABlab(34.31, 48.45, -37.36)
CIE-LCHlch(34.31, 61.19, 322.36°)
OKLaboklab(45.47% 0.1268 -0.1044)
OKLCHoklch(45.47% 0.164 320.5)
XYZxyz(14.2030, 8.1605, 26.0212)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D8D #3D8D2D
analogous
#4D2D8D #7D2D8D #8D2D6D
triadic
#7D2D8D #8D7D2D #2D8D7D
tetradic
#7D2D8D #8D4D2D #3D8D2D #2D6D8D
square
#7D2D8D #8D4D2D #3D8D2D #2D6D8D
split-complementary
#7D2D8D #6D8D2D #2D8D4D
monochromatic
#2B0F30 #541E5F #7D2D8D #A63CBB #BD66CE

Accessibility & contrast

On white

7.98
#7D2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7D2D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D8D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D8D#FFFFFF#000000##FFFFFF
##7D2D8D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E4B90
Deuteranopia (green-blind)
#36548B
Tritanopia (blue-blind)
#7E3E59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2d8d;
/* rgb */ color: rgb(125, 45, 141);
/* oklch */ color: oklch(45.5% 0.164 320.5);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7d2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d8d;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d8d",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 290,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45474,
    "c": 0.16426,
    "h": 320.5
  },
  "luminance": 0.0816
}

Semantic roles & 50–950 ramp

primary
#7D2D8D
secondary
#6FB561
accent
#DB4D64
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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