#7D2E8E#7D2E8E

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

Color values

HEX#7D2E8E
RGBrgb(125, 46, 142)
HSLhsl(289, 51%, 37%)
HSVhsv(289, 68%, 56%)
CMYKcmyk(12%, 67.6%, 0%, 44.3%)
CIE-LABlab(34.53, 48.21, -37.63)
CIE-LCHlch(34.53, 61.16, 322.03°)
OKLaboklab(45.65% 0.1256 -0.1052)
OKLCHoklch(45.65% 0.164 320.1)
XYZxyz(14.3163, 8.2676, 26.4277)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2E8E #3F8E2E
analogous
#4D2E8E #7D2E8E #8E2E6F
triadic
#7D2E8E #8E7D2E #2E8E7D
tetradic
#7D2E8E #8E4D2E #3F8E2E #2E6F8E
square
#7D2E8E #8E4D2E #3F8E2E #2E6F8E
split-complementary
#7D2E8E #6F8E2E #2E8E4D
monochromatic
#2C1032 #541F60 #7D2E8E #A63DBC #BC68CE

Accessibility & contrast

On white

7.91
#7D2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2E8E
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2E8E#FFFFFF#000000##FFFFFF
##7D2E8E1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2e8e;
/* rgb */ color: rgb(125, 46, 142);
/* oklch */ color: oklch(45.7% 0.164 320.1);
Tailwind
colors: {
  custom: {
    50: '#a66daf',
    500: '#7d2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #7d2e8e;
$custom-light: #a66daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2e8e",
  "rgb": {
    "r": 125,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 289.375,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45651,
    "c": 0.16383,
    "h": 320.1
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#7D2E8E
secondary
#71B563
accent
#DB4D66
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7D2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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