#7C2C81#7C2C81

#7C2C81 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.154 H 325.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7C2C81
RGBrgb(124, 44, 129)
HSLhsl(296, 49%, 34%)
HSVhsv(296, 66%, 51%)
CMYKcmyk(3.9%, 65.9%, 0%, 49.4%)
CIE-LABlab(33.29, 46.31, -31.57)
CIE-LCHlch(33.29, 56.05, 325.71°)
OKLaboklab(44.47% 0.1267 -0.0875)
OKLCHoklch(44.47% 0.154 325.4)
XYZxyz(13.1750, 7.6722, 21.5516)
Luminance0.0767 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2C81 #31812C
analogous
#522C81 #7C2C81 #812C5C
triadic
#7C2C81 #817C2C #2C817C
tetradic
#7C2C81 #81522C #31812C #2C5C81
square
#7C2C81 #81522C #31812C #2C5C81
split-complementary
#7C2C81 #5C812C #2C8152
monochromatic
#240D26 #501C53 #7C2C81 #A83CAF #C25FC8

Accessibility & contrast

On white

8.29
#7C2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2C81
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2C81#FFFFFF#000000##FFFFFF
##7C2C811.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4884
Deuteranopia (green-blind)
#3C527F
Tritanopia (blue-blind)
#7F3852
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2c81;
/* rgb */ color: rgb(124, 44, 129);
/* oklch */ color: oklch(44.5% 0.154 325.4);
Tailwind
colors: {
  custom: {
    50: '#a56ca6',
    500: '#7c2c81',
    950: '#000000',
  },
}
SCSS
$custom: #7c2c81;
$custom-light: #a56ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2c81",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 296.471,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44474,
    "c": 0.15398,
    "h": 325.4
  },
  "luminance": 0.07671
}

Semantic roles & 50–950 ramp

primary
#7C2C81
secondary
#5FAF5A
accent
#D94F57
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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