#7C3191#7C3191

#7C3191 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.1% C 0.162 H 318.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#7C3191
RGBrgb(124, 49, 145)
HSLhsl(287, 49%, 38%)
HSVhsv(287, 66%, 57%)
CMYKcmyk(14.5%, 66.2%, 0%, 43.1%)
CIE-LABlab(35.06, 47.22, -38.64)
CIE-LCHlch(35.06, 61.02, 320.70°)
OKLaboklab(46.06% 0.1207 -0.1082)
OKLCHoklch(46.06% 0.162 318.1)
XYZxyz(14.5206, 8.5267, 27.6635)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3191 #469131
analogous
#4C3191 #7C3191 #913176
triadic
#7C3191 #917C31 #31917C
tetradic
#7C3191 #914C31 #469131 #317691
square
#7C3191 #914C31 #469131 #317691
split-complementary
#7C3191 #769131 #31914C
monochromatic
#2E1236 #552263 #7C3191 #A341BF #B96ECE

Accessibility & contrast

On white

7.76
#7C3191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7C3191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C3191
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3191#FFFFFF#000000##FFFFFF
##7C31911.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#104E94
Deuteranopia (green-blind)
#35558F
Tritanopia (blue-blind)
#7C425C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7c3191;
/* rgb */ color: rgb(124, 49, 145);
/* oklch */ color: oklch(46.1% 0.162 318.1);
Tailwind
colors: {
  custom: {
    50: '#a56fb2',
    500: '#7c3191',
    950: '#000000',
  },
}
SCSS
$custom: #7c3191;
$custom-light: #a56fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3191",
  "rgb": {
    "r": 124,
    "g": 49,
    "b": 145
  },
  "hsl": {
    "h": 286.875,
    "s": 49.485,
    "l": 38.039
  },
  "oklch": {
    "l": 0.46056,
    "c": 0.16209,
    "h": 318.1
  },
  "luminance": 0.08526
}

Semantic roles & 50–950 ramp

primary
#7C3191
secondary
#79B668
accent
#D94F6D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100811
muted
#7F7B80

Preview Lab

Preview with #7C3191

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

Preview Lab → · Contrast checker → · Palette generator →

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