#7D3188#7D3188

#7D3188 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.154 H 322.4°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#7D3188
RGBrgb(125, 49, 136)
HSLhsl(292, 47%, 36%)
HSVhsv(292, 64%, 53%)
CMYKcmyk(8.1%, 64%, 0%, 46.7%)
CIE-LABlab(34.67, 45.64, -33.72)
CIE-LCHlch(34.67, 56.75, 323.55°)
OKLaboklab(45.64% 0.1219 -0.0938)
OKLCHoklch(45.64% 0.154 322.4)
XYZxyz(13.9992, 8.3349, 24.1592)
Luminance0.0833 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3188 #3C8831
analogous
#523188 #7D3188 #883168
triadic
#7D3188 #887D31 #31887D
tetradic
#7D3188 #885231 #3C8831 #316888
square
#7D3188 #885231 #3C8831 #316888
split-complementary
#7D3188 #688831 #318852
monochromatic
#2A112E #54215B #7D3188 #A641B5 #BD6AC9

Accessibility & contrast

On white

7.87
#7D3188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7D3188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D3188
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3188#FFFFFF#000000##FFFFFF
##7D31881.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4C8B
Deuteranopia (green-blind)
#3C5586
Tritanopia (blue-blind)
#7F3E58
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d3188;
/* rgb */ color: rgb(125, 49, 136);
/* oklch */ color: oklch(45.6% 0.154 322.4);
Tailwind
colors: {
  custom: {
    50: '#a56fab',
    500: '#7d3188',
    950: '#000000',
  },
}
SCSS
$custom: #7d3188;
$custom-light: #a56fab;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3188",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 136
  },
  "hsl": {
    "h": 292.414,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45635,
    "c": 0.15379,
    "h": 322.4
  },
  "luminance": 0.08334
}

Semantic roles & 50–950 ramp

primary
#7D3188
secondary
#6EB164
accent
#D75162
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D3188

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

Preview Lab → · Contrast checker → · Palette generator →

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