#7D2197#7D2197

#7D2197 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.188 H 317.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7D2197
RGBrgb(125, 33, 151)
HSLhsl(287, 64%, 36%)
HSVhsv(287, 78%, 59%)
CMYKcmyk(17.2%, 78.1%, 0%, 40.8%)
CIE-LABlab(33.31, 55.14, -45.10)
CIE-LCHlch(33.31, 71.23, 320.72°)
OKLaboklab(44.97% 0.1384 -0.1269)
OKLCHoklch(44.97% 0.188 317.5)
XYZxyz(14.5864, 7.6827, 29.9867)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2197 #3B9721
analogous
#422197 #7D2197 #972176
triadic
#7D2197 #977D21 #21977D
tetradic
#7D2197 #974221 #3B9721 #217697
square
#7D2197 #974221 #3B9721 #217697
split-complementary
#7D2197 #769721 #219742
monochromatic
#2A0B33 #531665 #7D2197 #A72CC9 #BE58DA

Accessibility & contrast

On white

8.28
#7D2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7D2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2197
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2197#FFFFFF#000000##FFFFFF
##7D21971.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d2197;
/* rgb */ color: rgb(125, 33, 151);
/* oklch */ color: oklch(45.0% 0.188 317.5);
Tailwind
colors: {
  custom: {
    50: '#a767b6',
    500: '#7d2197',
    950: '#000000',
  },
}
SCSS
$custom: #7d2197;
$custom-light: #a767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2197",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 286.78,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44968,
    "c": 0.18778,
    "h": 317.5
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#7D2197
secondary
#6CBE55
accent
#E74165
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D2197

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

Preview Lab → · Contrast checker → · Palette generator →

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