#7D2D8E#7D2D8E

#7D2D8E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.165 H 320.1°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7D2D8E
RGBrgb(125, 45, 142)
HSLhsl(289, 52%, 37%)
HSVhsv(289, 68%, 56%)
CMYKcmyk(12%, 68.3%, 0%, 44.3%)
CIE-LABlab(34.38, 48.65, -37.88)
CIE-LCHlch(34.38, 61.66, 322.10°)
OKLaboklab(45.54% 0.1268 -0.1059)
OKLCHoklch(45.54% 0.165 320.1)
XYZxyz(14.2777, 8.1904, 26.4148)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2D8E #3E8E2D
analogous
#4D2D8E #7D2D8E #8E2D6F
triadic
#7D2D8E #8E7D2D #2D8E7D
tetradic
#7D2D8E #8E4D2D #3E8E2D #2D6F8E
square
#7D2D8E #8E4D2D #3E8E2D #2D6F8E
split-complementary
#7D2D8E #6F8E2D #2D8E4D
monochromatic
#2B1031 #541E60 #7D2D8E #A63CBC #BC67CF

Accessibility & contrast

On white

7.96
#7D2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7D2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2D8E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2D8E#FFFFFF#000000##FFFFFF
##7D2D8E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4B91
Deuteranopia (green-blind)
#36548C
Tritanopia (blue-blind)
#7E3E5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2d8e;
/* rgb */ color: rgb(125, 45, 142);
/* oklch */ color: oklch(45.5% 0.165 320.1);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7d2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2d8e;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2d8e",
  "rgb": {
    "r": 125,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 289.485,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45538,
    "c": 0.16521,
    "h": 320.1
  },
  "luminance": 0.0819
}

Semantic roles & 50–950 ramp

primary
#7D2D8E
secondary
#70B561
accent
#DB4C66
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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