#7D2188#7D2188

#7D2188 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.175 H 323.2°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7D2188
RGBrgb(125, 33, 136)
HSLhsl(294, 61%, 33%)
HSVhsv(294, 76%, 53%)
CMYKcmyk(8.1%, 75.7%, 0%, 46.7%)
CIE-LABlab(32.32, 52.26, -37.47)
CIE-LCHlch(32.32, 64.30, 324.36°)
OKLaboklab(43.94% 0.1399 -0.1046)
OKLCHoklch(43.94% 0.175 323.2)
XYZxyz(13.4448, 7.2261, 23.9744)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2188 #2C8821
analogous
#492188 #7D2188 #88215F
triadic
#7D2188 #887D21 #21887D
tetradic
#7D2188 #884921 #2C8821 #215F88
square
#7D2188 #884921 #2C8821 #215F88
split-complementary
#7D2188 #5F8821 #218849
monochromatic
#220925 #501557 #7D2188 #AA2DB9 #C64FD4

Accessibility & contrast

On white

8.59
#7D2188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7D2188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2188
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2188#FFFFFF#000000##FFFFFF
##7D21881.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458B
Deuteranopia (green-blind)
#325086
Tritanopia (blue-blind)
#7F3453
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d2188;
/* rgb */ color: rgb(125, 33, 136);
/* oklch */ color: oklch(43.9% 0.175 323.2);
Tailwind
colors: {
  custom: {
    50: '#a667ab',
    500: '#7d2188',
    950: '#000000',
  },
}
SCSS
$custom: #7d2188;
$custom-light: #a667ab;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2188",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 293.592,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43943,
    "c": 0.1747,
    "h": 323.2
  },
  "luminance": 0.07225
}

Semantic roles & 50–950 ramp

primary
#7D2188
secondary
#59B84D
accent
#E44455
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D2188

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

Preview Lab → · Contrast checker → · Palette generator →

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