#7D297D#7D297D

#7D297D is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.0% C 0.155 H 327.8°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7D297D
RGBrgb(125, 41, 125)
HSLhsl(300, 51%, 33%)
HSVhsv(300, 67%, 49%)
CMYKcmyk(0%, 67.2%, 0%, 51%)
CIE-LABlab(32.76, 47.12, -29.90)
CIE-LCHlch(32.76, 55.81, 327.60°)
OKLaboklab(44.05% 0.1313 -0.0826)
OKLCHoklch(44.05% 0.155 327.8)
XYZxyz(12.9519, 7.4274, 20.1495)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D297D #297D29
analogous
#53297D #7D297D #7D2953
triadic
#7D297D #7D7D29 #297D7D
tetradic
#7D297D #7D5329 #297D29 #29537D
square
#7D297D #7D5329 #297D29 #29537D
split-complementary
#7D297D #537D29 #297D53
monochromatic
#210B21 #4F1A4F #7D297D #AB38AB #C858C8

Accessibility & contrast

On white

8.45
#7D297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7D297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D297D
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D297D#FFFFFF#000000##FFFFFF
##7D297D1.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D467F
Deuteranopia (green-blind)
#3E517B
Tritanopia (blue-blind)
#81344F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d297d;
/* rgb */ color: rgb(125, 41, 125);
/* oklch */ color: oklch(44.0% 0.155 327.8);
Tailwind
colors: {
  custom: {
    50: '#a56aa3',
    500: '#7d297d',
    950: '#000000',
  },
}
SCSS
$custom: #7d297d;
$custom-light: #a56aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d297d",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.4405,
    "c": 0.15517,
    "h": 327.8
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#7D297D
secondary
#54AE54
accent
#DA4E4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D297D

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

Preview Lab → · Contrast checker → · Palette generator →

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