#7C2A91#7C2A91

#7C2A91 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.172 H 318.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#7C2A91
RGBrgb(124, 42, 145)
HSLhsl(288, 55%, 37%)
HSVhsv(288, 71%, 57%)
CMYKcmyk(14.5%, 71%, 0%, 43.1%)
CIE-LABlab(33.95, 50.30, -40.41)
CIE-LCHlch(33.95, 64.52, 321.23°)
OKLaboklab(45.26% 0.1288 -0.1133)
OKLCHoklch(45.26% 0.172 318.7)
XYZxyz(14.2503, 7.9860, 27.5734)
Luminance0.0799 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2A91 #3F912A
analogous
#492A91 #7C2A91 #912A73
triadic
#7C2A91 #917C2A #2A917C
tetradic
#7C2A91 #91492A #3F912A #2A7391
square
#7C2A91 #91492A #3F912A #2A7391
split-complementary
#7C2A91 #73912A #2A9149
monochromatic
#2B0F32 #531C62 #7C2A91 #A538C0 #BB63D2

Accessibility & contrast

On white

8.09
#7C2A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7C2A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2A91
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2A91#FFFFFF#000000##FFFFFF
##7C2A911.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A94
Deuteranopia (green-blind)
#30538F
Tritanopia (blue-blind)
#7C3E5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2a91;
/* rgb */ color: rgb(124, 42, 145);
/* oklch */ color: oklch(45.3% 0.172 318.7);
Tailwind
colors: {
  custom: {
    50: '#a56bb2',
    500: '#7c2a91',
    950: '#000000',
  },
}
SCSS
$custom: #7c2a91;
$custom-light: #a56bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2a91",
  "rgb": {
    "r": 124,
    "g": 42,
    "b": 145
  },
  "hsl": {
    "h": 287.767,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45264,
    "c": 0.17155,
    "h": 318.7
  },
  "luminance": 0.07985
}

Semantic roles & 50–950 ramp

primary
#7C2A91
secondary
#71B85F
accent
#DE4968
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2A91

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

Preview Lab → · Contrast checker → · Palette generator →

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