#7D297F#7D297F

#7D297F is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.157 H 326.9°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#7D297F
RGBrgb(125, 41, 127)
HSLhsl(299, 51%, 33%)
HSVhsv(299, 68%, 50%)
CMYKcmyk(1.6%, 67.7%, 0%, 50.2%)
CIE-LABlab(32.87, 47.49, -30.97)
CIE-LCHlch(32.87, 56.70, 326.88°)
OKLaboklab(44.17% 0.1314 -0.0858)
OKLCHoklch(44.17% 0.157 326.9)
XYZxyz(13.0809, 7.4790, 20.8292)
Luminance0.0748 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D297F #2B7F29
analogous
#52297F #7D297F #7F2956
triadic
#7D297F #7F7D29 #297F7D
tetradic
#7D297F #7F5229 #2B7F29 #29567F
square
#7D297F #7F5229 #2B7F29 #29567F
split-complementary
#7D297F #567F29 #297F52
monochromatic
#220B22 #4F1A51 #7D297F #AB38AD #C759C9

Accessibility & contrast

On white

8.41
#7D297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7D297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D297F
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D297F#FFFFFF#000000##FFFFFF
##7D297F1.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4682
Deuteranopia (green-blind)
#3D517D
Tritanopia (blue-blind)
#813550
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d297f;
/* rgb */ color: rgb(125, 41, 127);
/* oklch */ color: oklch(44.2% 0.157 326.9);
Tailwind
colors: {
  custom: {
    50: '#a56aa4',
    500: '#7d297f',
    950: '#000000',
  },
}
SCSS
$custom: #7d297f;
$custom-light: #a56aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d297f",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 298.605,
    "s": 51.19,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44168,
    "c": 0.15693,
    "h": 326.9
  },
  "luminance": 0.07478
}

Semantic roles & 50–950 ramp

primary
#7D297F
secondary
#57AF55
accent
#DB4D50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7D297F

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

Preview Lab → · Contrast checker → · Palette generator →

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