#7D2791#7D2791

#7D2791 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.1% C 0.176 H 319.3°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#7D2791
RGBrgb(125, 39, 145)
HSLhsl(289, 58%, 36%)
HSVhsv(289, 73%, 57%)
CMYKcmyk(13.8%, 73.1%, 0%, 43.1%)
CIE-LABlab(33.68, 51.75, -40.83)
CIE-LCHlch(33.68, 65.92, 321.72°)
OKLaboklab(45.1% 0.1333 -0.1145)
OKLCHoklch(45.1% 0.176 319.3)
XYZxyz(14.2931, 7.8560, 27.5461)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2791 #3B9127
analogous
#482791 #7D2791 #912770
triadic
#7D2791 #917D27 #27917D
tetradic
#7D2791 #914827 #3B9127 #277091
square
#7D2791 #914827 #3B9127 #277091
split-complementary
#7D2791 #709127 #279148
monochromatic
#2A0D31 #531A61 #7D2791 #A734C1 #BE5FD4

Accessibility & contrast

On white

8.17
#7D2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2791
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2791#FFFFFF#000000##FFFFFF
##7D27911.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#2F528F
Tritanopia (blue-blind)
#7D3C59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d2791;
/* rgb */ color: rgb(125, 39, 145);
/* oklch */ color: oklch(45.1% 0.176 319.3);
Tailwind
colors: {
  custom: {
    50: '#a66ab2',
    500: '#7d2791',
    950: '#000000',
  },
}
SCSS
$custom: #7d2791;
$custom-light: #a66ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2791",
  "rgb": {
    "r": 125,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 288.679,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45101,
    "c": 0.1757,
    "h": 319.3
  },
  "luminance": 0.07855
}

Semantic roles & 50–950 ramp

primary
#7D2791
secondary
#6CB95B
accent
#E14764
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2791

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

Preview Lab → · Contrast checker → · Palette generator →

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