#7D2F76#7D2F76

#7D2F76 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.4% C 0.140 H 331.3°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7D2F76
RGBrgb(125, 47, 118)
HSLhsl(305, 45%, 34%)
HSVhsv(305, 62%, 49%)
CMYKcmyk(0%, 62.4%, 5.6%, 51%)
CIE-LABlab(33.35, 43.18, -24.57)
CIE-LCHlch(33.35, 49.68, 330.36°)
OKLaboklab(44.36% 0.1231 -0.0673)
OKLCHoklch(44.36% 0.14 331.3)
XYZxyz(12.7439, 7.7019, 17.9514)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F76 #2F7D36
analogous
#5D2F7D #7D2F76 #7D2F4F
triadic
#7D2F76 #767D2F #2F767D
tetradic
#7D2F76 #7D5D2F #2F7D36 #2F4F7D
square
#7D2F76 #7D5D2F #2F7D36 #2F4F7D
split-complementary
#7D2F76 #4F7D2F #2F7D5D
monochromatic
#240E22 #511E4C #7D2F76 #A940A0 #C462BB

Accessibility & contrast

On white

8.27
#7D2F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D2F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F76
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F76#FFFFFF#000000##FFFFFF
##7D2F761.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4778
Deuteranopia (green-blind)
#445274
Tritanopia (blue-blind)
#82364E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d2f76;
/* rgb */ color: rgb(125, 47, 118);
/* oklch */ color: oklch(44.4% 0.140 331.3);
Tailwind
colors: {
  custom: {
    50: '#a56d9e',
    500: '#7d2f76',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f76;
$custom-light: #a56d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f76",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 305.385,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4436,
    "c": 0.14027,
    "h": 331.3
  },
  "luminance": 0.07701
}

Semantic roles & 50–950 ramp

primary
#7D2F76
secondary
#5DAB64
accent
#D55E53
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7D2F76

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

Preview Lab → · Contrast checker → · Palette generator →

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