#7C2991#7C2991

#7C2991 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.173 H 318.7°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7C2991
RGBrgb(124, 41, 145)
HSLhsl(288, 56%, 36%)
HSVhsv(288, 72%, 57%)
CMYKcmyk(14.5%, 71.7%, 0%, 43.1%)
CIE-LABlab(33.81, 50.72, -40.64)
CIE-LCHlch(33.81, 64.99, 321.29°)
OKLaboklab(45.16% 0.1299 -0.114)
OKLCHoklch(45.16% 0.173 318.7)
XYZxyz(14.2153, 7.9160, 27.5617)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2991 #3E9129
analogous
#482991 #7C2991 #912972
triadic
#7C2991 #917C29 #29917C
tetradic
#7C2991 #914829 #3E9129 #297291
square
#7C2991 #914829 #3E9129 #297291
split-complementary
#7C2991 #729129 #299148
monochromatic
#2A0E32 #531C61 #7C2991 #A536C1 #BC62D3

Accessibility & contrast

On white

8.13
#7C2991 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7C2991 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2991
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2991#FFFFFF#000000##FFFFFF
##7C29911.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#2F528F
Tritanopia (blue-blind)
#7C3D5A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2991;
/* rgb */ color: rgb(124, 41, 145);
/* oklch */ color: oklch(45.2% 0.173 318.7);
Tailwind
colors: {
  custom: {
    50: '#a56bb2',
    500: '#7c2991',
    950: '#000000',
  },
}
SCSS
$custom: #7c2991;
$custom-light: #a56bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2991",
  "rgb": {
    "r": 124,
    "g": 41,
    "b": 145
  },
  "hsl": {
    "h": 287.885,
    "s": 55.914,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45159,
    "c": 0.17281,
    "h": 318.7
  },
  "luminance": 0.07915
}

Semantic roles & 50–950 ramp

primary
#7C2991
secondary
#70B85D
accent
#DF4967
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2991

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

Preview Lab → · Contrast checker → · Palette generator →

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