#7D2991#7D2991

#7D2991 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.173 H 319.2°. Best body text is #FFFFFF at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#7D2991
RGBrgb(125, 41, 145)
HSLhsl(288, 56%, 36%)
HSVhsv(288, 72%, 57%)
CMYKcmyk(13.8%, 71.7%, 0%, 43.1%)
CIE-LABlab(33.96, 50.94, -40.38)
CIE-LCHlch(33.96, 65.01, 321.60°)
OKLaboklab(45.3% 0.1312 -0.1132)
OKLCHoklch(45.3% 0.173 319.2)
XYZxyz(14.3606, 7.9909, 27.5685)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2991 #3D9129
analogous
#492991 #7D2991 #912971
triadic
#7D2991 #917D29 #29917D
tetradic
#7D2991 #914929 #3D9129 #297191
square
#7D2991 #914929 #3D9129 #297191
split-complementary
#7D2991 #719129 #299149
monochromatic
#2B0E32 #541C61 #7D2991 #A636C1 #BD62D3

Accessibility & contrast

On white

8.08
#7D2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7D2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2991
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2991#FFFFFF#000000##FFFFFF
##7D29911.008.082.608.08
#FFFFFF8.081.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#30538F
Tritanopia (blue-blind)
#7D3D5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7d2991;
/* rgb */ color: rgb(125, 41, 145);
/* oklch */ color: oklch(45.3% 0.173 319.2);
Tailwind
colors: {
  custom: {
    50: '#a66bb2',
    500: '#7d2991',
    950: '#000000',
  },
}
SCSS
$custom: #7d2991;
$custom-light: #a66bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2991",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 288.462,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45303,
    "c": 0.17324,
    "h": 319.2
  },
  "luminance": 0.0799
}

Semantic roles & 50–950 ramp

primary
#7D2991
secondary
#6FB85D
accent
#DF4966
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2991

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

Preview Lab → · Contrast checker → · Palette generator →

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