#7D318E#7D318E

#7D318E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.0% C 0.160 H 319.9°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#7D318E
RGBrgb(125, 49, 142)
HSLhsl(289, 49%, 37%)
HSVhsv(289, 65%, 56%)
CMYKcmyk(12%, 65.5%, 0%, 44.3%)
CIE-LABlab(35.02, 46.85, -36.85)
CIE-LCHlch(35.02, 59.61, 321.82°)
OKLaboklab(46% 0.122 -0.1029)
OKLCHoklch(46% 0.16 319.9)
XYZxyz(14.4376, 8.5103, 26.4681)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D318E #428E31
analogous
#4E318E #7D318E #8E3171
triadic
#7D318E #8E7D31 #318E7D
tetradic
#7D318E #8E4E31 #428E31 #31718E
square
#7D318E #8E4E31 #428E31 #31718E
split-complementary
#7D318E #718E31 #318E4E
monochromatic
#2D1233 #552161 #7D318E #A541BB #BB6DCD

Accessibility & contrast

On white

7.77
#7D318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D318E
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D318E#FFFFFF#000000##FFFFFF
##7D318E1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164D91
Deuteranopia (green-blind)
#38558C
Tritanopia (blue-blind)
#7D415B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d318e;
/* rgb */ color: rgb(125, 49, 142);
/* oklch */ color: oklch(46.0% 0.160 319.9);
Tailwind
colors: {
  custom: {
    50: '#a56faf',
    500: '#7d318e',
    950: '#000000',
  },
}
SCSS
$custom: #7d318e;
$custom-light: #a56faf;
$custom-dark: #000000;
JSON
{
  "hex": "#7d318e",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 289.032,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46004,
    "c": 0.15961,
    "h": 319.9
  },
  "luminance": 0.0851
}

Semantic roles & 50–950 ramp

primary
#7D318E
secondary
#75B467
accent
#D85069
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D318E

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

Preview Lab → · Contrast checker → · Palette generator →

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