#7D2997#7D2997

#7D2997 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.179 H 316.9°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7D2997
RGBrgb(125, 41, 151)
HSLhsl(286, 57%, 38%)
HSVhsv(286, 73%, 59%)
CMYKcmyk(17.2%, 72.8%, 0%, 40.8%)
CIE-LABlab(34.36, 52.16, -43.42)
CIE-LCHlch(34.36, 67.86, 320.22°)
OKLaboklab(45.71% 0.1307 -0.1221)
OKLCHoklch(45.71% 0.179 316.9)
XYZxyz(14.8355, 8.1808, 30.0698)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2997 #439729
analogous
#462997 #7D2997 #97297A
triadic
#7D2997 #977D29 #29977D
tetradic
#7D2997 #974629 #439729 #297A97
square
#7D2997 #974629 #439729 #297A97
split-complementary
#7D2997 #7A9729 #299746
monochromatic
#2D0F37 #551C67 #7D2997 #A536C7 #BB65D5

Accessibility & contrast

On white

7.97
#7D2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D2997
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2997#FFFFFF#000000##FFFFFF
##7D29971.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2B5395
Tritanopia (blue-blind)
#7C3F5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7d2997;
/* rgb */ color: rgb(125, 41, 151);
/* oklch */ color: oklch(45.7% 0.179 316.9);
Tailwind
colors: {
  custom: {
    50: '#a66bb6',
    500: '#7d2997',
    950: '#000000',
  },
}
SCSS
$custom: #7d2997;
$custom-light: #a66bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2997",
  "rgb": {
    "r": 125,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 285.818,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45709,
    "c": 0.17882,
    "h": 316.9
  },
  "luminance": 0.0818
}

Semantic roles & 50–950 ramp

primary
#7D2997
secondary
#76BB61
accent
#E1476B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2997

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

Preview Lab → · Contrast checker → · Palette generator →

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