#7D2F8D#7D2F8D

#7D2F8D is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.7% C 0.161 H 320.4°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#7D2F8D
RGBrgb(125, 47, 141)
HSLhsl(290, 50%, 37%)
HSVhsv(290, 67%, 55%)
CMYKcmyk(11.3%, 66.7%, 0%, 44.7%)
CIE-LABlab(34.63, 47.56, -36.85)
CIE-LCHlch(34.63, 60.17, 322.23°)
OKLaboklab(45.7% 0.1245 -0.1029)
OKLCHoklch(45.7% 0.161 320.4)
XYZxyz(14.2811, 8.3168, 26.0472)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2F8D #3F8D2F
analogous
#4E2F8D #7D2F8D #8D2F6E
triadic
#7D2F8D #8D7D2F #2F8D7D
tetradic
#7D2F8D #8D4E2F #3F8D2F #2F6E8D
square
#7D2F8D #8D4E2F #3F8D2F #2F6E8D
split-complementary
#7D2F8D #6E8D2F #2F8D4E
monochromatic
#2C1031 #54205F #7D2F8D #A63EBB #BC69CD

Accessibility & contrast

On white

7.89
#7D2F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#7D2F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2F8D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2F8D#FFFFFF#000000##FFFFFF
##7D2F8D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C90
Deuteranopia (green-blind)
#38548B
Tritanopia (blue-blind)
#7E3F5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2f8d;
/* rgb */ color: rgb(125, 47, 141);
/* oklch */ color: oklch(45.7% 0.161 320.4);
Tailwind
colors: {
  custom: {
    50: '#a56eaf',
    500: '#7d2f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7d2f8d;
$custom-light: #a56eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2f8d",
  "rgb": {
    "r": 125,
    "g": 47,
    "b": 141
  },
  "hsl": {
    "h": 289.787,
    "s": 50,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45704,
    "c": 0.16149,
    "h": 320.4
  },
  "luminance": 0.08316
}

Semantic roles & 50–950 ramp

primary
#7D2F8D
secondary
#71B464
accent
#DA4E66
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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