#7C319D#7C319D

#7C319D is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.9% C 0.174 H 313.6°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#7C319D
RGBrgb(124, 49, 157)
HSLhsl(282, 52%, 40%)
HSVhsv(282, 69%, 62%)
CMYKcmyk(21%, 68.8%, 0%, 38.4%)
CIE-LABlab(35.82, 49.77, -44.72)
CIE-LCHlch(35.82, 66.91, 318.06°)
OKLaboklab(46.85% 0.1201 -0.126)
OKLCHoklch(46.85% 0.174 313.6)
XYZxyz(15.4953, 8.9165, 32.7966)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C319D #529D31
analogous
#46319D #7C319D #9D3188
triadic
#7C319D #9D7C31 #319D7C
tetradic
#7C319D #9D4631 #529D31 #31889D
square
#7C319D #9D4631 #529D31 #31889D
split-complementary
#7C319D #889D31 #319D46
monochromatic
#321440 #57226E #7C319D #9E46C5 #B775D4

Accessibility & contrast

On white

7.55
#7C319D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7C319D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C319D
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C319D#FFFFFF#000000##FFFFFF
##7C319D1.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A0
Deuteranopia (green-blind)
#2A569B
Tritanopia (blue-blind)
#794763
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7c319d;
/* rgb */ color: rgb(124, 49, 157);
/* oklch */ color: oklch(46.9% 0.174 313.6);
Tailwind
colors: {
  custom: {
    50: '#a56fba',
    500: '#7c319d',
    950: '#000000',
  },
}
SCSS
$custom: #7c319d;
$custom-light: #a56fba;
$custom-dark: #000000;
JSON
{
  "hex": "#7c319d",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 157
  },
  "hsl": {
    "h": 281.667,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.46853,
    "c": 0.17407,
    "h": 313.6
  },
  "luminance": 0.08916
}

Semantic roles & 50–950 ramp

primary
#7C319D
secondary
#86BC6E
accent
#DC4C78
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7C319D

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

Preview Lab → · Contrast checker → · Palette generator →

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