#7D318D#7D318D

#7D318D is a mid, vivid purple. Relative luminance 0.085; OKLCH L 45.9% C 0.159 H 320.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#7D318D
RGBrgb(125, 49, 141)
HSLhsl(290, 48%, 37%)
HSVhsv(290, 65%, 55%)
CMYKcmyk(11.3%, 65.2%, 0%, 44.7%)
CIE-LABlab(34.96, 46.65, -36.33)
CIE-LCHlch(34.96, 59.13, 322.09°)
OKLaboklab(45.94% 0.122 -0.1014)
OKLCHoklch(45.94% 0.159 320.3)
XYZxyz(14.3629, 8.4804, 26.0745)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D318D #418D31
analogous
#4F318D #7D318D #8D316F
triadic
#7D318D #8D7D31 #318D7D
tetradic
#7D318D #8D4F31 #418D31 #316F8D
square
#7D318D #8D4F31 #418D31 #316F8D
split-complementary
#7D318D #6F8D31 #318D4F
monochromatic
#2C1132 #552160 #7D318D #A541BA #BB6CCC

Accessibility & contrast

On white

7.79
#7D318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7D318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D318D
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D318D#FFFFFF#000000##FFFFFF
##7D318D1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184D90
Deuteranopia (green-blind)
#39558B
Tritanopia (blue-blind)
#7E405A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d318d;
/* rgb */ color: rgb(125, 49, 141);
/* oklch */ color: oklch(45.9% 0.159 320.3);
Tailwind
colors: {
  custom: {
    50: '#a56faf',
    500: '#7d318d',
    950: '#000000',
  },
}
SCSS
$custom: #7d318d;
$custom-light: #a56faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d318d",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 289.565,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45942,
    "c": 0.15863,
    "h": 320.3
  },
  "luminance": 0.0848
}

Semantic roles & 50–950 ramp

primary
#7D318D
secondary
#74B466
accent
#D85067
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D318D

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

Preview Lab → · Contrast checker → · Palette generator →

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