#7D2F71#7D2F71

#7D2F71 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.1% C 0.136 H 334.1°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#7D2F71
RGBrgb(125, 47, 113)
HSLhsl(309, 45%, 34%)
HSVhsv(309, 62%, 49%)
CMYKcmyk(0%, 62.4%, 9.6%, 51%)
CIE-LABlab(33.11, 42.30, -21.81)
CIE-LCHlch(33.11, 47.59, 332.73°)
OKLaboklab(44.1% 0.1223 -0.0594)
OKLCHoklch(44.1% 0.136 334.1)
XYZxyz(12.4547, 7.5862, 16.4279)
Luminance0.0759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F71 #2F7D3B
analogous
#622F7D #7D2F71 #7D2F4A
triadic
#7D2F71 #717D2F #2F717D
tetradic
#7D2F71 #7D622F #2F7D3B #2F4A7D
square
#7D2F71 #7D622F #2F7D3B #2F4A7D
split-complementary
#7D2F71 #4A7D2F #2F7D62
monochromatic
#240E21 #511E49 #7D2F71 #A94099 #C462B5

Accessibility & contrast

On white

8.34
#7D2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7D2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F71
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F71#FFFFFF#000000##FFFFFF
##7D2F711.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4773
Deuteranopia (green-blind)
#47526F
Tritanopia (blue-blind)
#83344B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d2f71;
/* rgb */ color: rgb(125, 47, 113);
/* oklch */ color: oklch(44.1% 0.136 334.1);
Tailwind
colors: {
  custom: {
    50: '#a56d9a',
    500: '#7d2f71',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f71;
$custom-light: #a56d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f71",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 309.231,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44097,
    "c": 0.13599,
    "h": 334.1
  },
  "luminance": 0.07585
}

Semantic roles & 50–950 ramp

primary
#7D2F71
secondary
#5DAB69
accent
#D56753
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7D2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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