#7D2E8D#7D2E8D

#7D2E8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.163 H 320.5°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#7D2E8D
RGBrgb(125, 46, 141)
HSLhsl(290, 51%, 37%)
HSVhsv(290, 67%, 55%)
CMYKcmyk(11.3%, 67.4%, 0%, 44.7%)
CIE-LABlab(34.47, 48.01, -37.11)
CIE-LCHlch(34.47, 60.68, 322.30°)
OKLaboklab(45.59% 0.1257 -0.1036)
OKLCHoklch(45.59% 0.163 320.5)
XYZxyz(14.2416, 8.2378, 26.0340)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2E8D #3E8D2E
analogous
#4E2E8D #7D2E8D #8D2E6E
triadic
#7D2E8D #8D7D2E #2E8D7D
tetradic
#7D2E8D #8D4E2E #3E8D2E #2E6E8D
square
#7D2E8D #8D4E2E #3E8D2E #2E6E8D
split-complementary
#7D2E8D #6E8D2E #2E8D4E
monochromatic
#2B1031 #541F5F #7D2E8D #A63DBB #BC68CE

Accessibility & contrast

On white

7.93
#7D2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7D2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2E8D
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2E8D#FFFFFF#000000##FFFFFF
##7D2E8D1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#114C90
Deuteranopia (green-blind)
#37548B
Tritanopia (blue-blind)
#7E3E59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2e8d;
/* rgb */ color: rgb(125, 46, 141);
/* oklch */ color: oklch(45.6% 0.163 320.5);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7d2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7d2e8d;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2e8d",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 289.895,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45588,
    "c": 0.16288,
    "h": 320.5
  },
  "luminance": 0.08237
}

Semantic roles & 50–950 ramp

primary
#7D2E8D
secondary
#70B562
accent
#DA4E65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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