#7D318C#7D318C

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

Color values

HEX#7D318C
RGBrgb(125, 49, 140)
HSLhsl(290, 48%, 37%)
HSVhsv(290, 65%, 55%)
CMYKcmyk(10.7%, 65%, 0%, 45.1%)
CIE-LABlab(34.90, 46.45, -35.81)
CIE-LCHlch(34.90, 58.65, 322.37°)
OKLaboklab(45.88% 0.122 -0.0999)
OKLCHoklch(45.88% 0.158 320.7)
XYZxyz(14.2888, 8.4507, 25.6844)
Luminance0.0845 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D318C #408C31
analogous
#50318C #7D318C #8C316E
triadic
#7D318C #8C7D31 #318C7D
tetradic
#7D318C #8C5031 #408C31 #316E8C
square
#7D318C #8C5031 #408C31 #316E8C
split-complementary
#7D318C #6E8C31 #318C50
monochromatic
#2C1131 #55215F #7D318C #A541B9 #BC6CCC

Accessibility & contrast

On white

7.81
#7D318C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7D318C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D318C
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D318C#FFFFFF#000000##FFFFFF
##7D318C1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D8F
Deuteranopia (green-blind)
#3A558A
Tritanopia (blue-blind)
#7E405A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7d318c;
/* rgb */ color: rgb(125, 49, 140);
/* oklch */ color: oklch(45.9% 0.158 320.7);
Tailwind
colors: {
  custom: {
    50: '#a56fae',
    500: '#7d318c',
    950: '#000000',
  },
}
SCSS
$custom: #7d318c;
$custom-light: #a56fae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d318c",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 140
  },
  "hsl": {
    "h": 290.11,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.4588,
    "c": 0.15766,
    "h": 320.7
  },
  "luminance": 0.0845
}

Semantic roles & 50–950 ramp

primary
#7D318C
secondary
#73B366
accent
#D85066
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100810
muted
#7F7B7F

Preview Lab

Preview with #7D318C

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

Preview Lab → · Contrast checker → · Palette generator →

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