#7D2097#7D2097

#7D2097 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.189 H 317.5°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7D2097
RGBrgb(125, 32, 151)
HSLhsl(287, 65%, 36%)
HSVhsv(287, 79%, 59%)
CMYKcmyk(17.2%, 78.8%, 0%, 40.8%)
CIE-LABlab(33.20, 55.48, -45.29)
CIE-LCHlch(33.20, 71.62, 320.77°)
OKLaboklab(44.89% 0.1392 -0.1275)
OKLCHoklch(44.89% 0.189 317.5)
XYZxyz(14.5591, 7.6280, 29.9776)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2097 #3A9720
analogous
#412097 #7D2097 #972075
triadic
#7D2097 #977D20 #20977D
tetradic
#7D2097 #974120 #3A9720 #207597
square
#7D2097 #974120 #3A9720 #207597
split-complementary
#7D2097 #759720 #209741
monochromatic
#290B32 #531564 #7D2097 #A72BC9 #BE56DB

Accessibility & contrast

On white

8.32
#7D2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2097
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2097#FFFFFF#000000##FFFFFF
##7D20971.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#235194
Tritanopia (blue-blind)
#7C3B5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d2097;
/* rgb */ color: rgb(125, 32, 151);
/* oklch */ color: oklch(44.9% 0.189 317.5);
Tailwind
colors: {
  custom: {
    50: '#a767b6',
    500: '#7d2097',
    950: '#000000',
  },
}
SCSS
$custom: #7d2097;
$custom-light: #a767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2097",
  "rgb": {
    "r": 125,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 286.891,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44885,
    "c": 0.18878,
    "h": 317.5
  },
  "luminance": 0.07627
}

Semantic roles & 50–950 ramp

primary
#7D2097
secondary
#6BBF54
accent
#E84065
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2097

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

Preview Lab → · Contrast checker → · Palette generator →

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