#7C2B7D#7C2B7D

#7C2B7D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.1% C 0.152 H 327.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7C2B7D
RGBrgb(124, 43, 125)
HSLhsl(299, 49%, 33%)
HSVhsv(299, 66%, 49%)
CMYKcmyk(0.8%, 65.6%, 0%, 51%)
CIE-LABlab(32.91, 46.00, -29.68)
CIE-LCHlch(32.91, 54.74, 327.17°)
OKLaboklab(44.12% 0.1277 -0.082)
OKLCHoklch(44.12% 0.152 327.3)
XYZxyz(12.8775, 7.4943, 20.1663)
Luminance0.0749 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B7D #2C7D2B
analogous
#532B7D #7C2B7D #7D2B55
triadic
#7C2B7D #7D7C2B #2B7D7C
tetradic
#7C2B7D #7D532B #2C7D2B #2B557D
square
#7C2B7D #7D532B #2C7D2B #2B557D
split-complementary
#7C2B7D #557D2B #2B7D53
monochromatic
#220C22 #4F1B4F #7C2B7D #A93BAB #C55CC7

Accessibility & contrast

On white

8.40
#7C2B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7C2B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2B7D
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B7D#FFFFFF#000000##FFFFFF
##7C2B7D1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20477F
Deuteranopia (green-blind)
#3E517B
Tritanopia (blue-blind)
#803650
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2b7d;
/* rgb */ color: rgb(124, 43, 125);
/* oklch */ color: oklch(44.1% 0.152 327.3);
Tailwind
colors: {
  custom: {
    50: '#a56ba3',
    500: '#7c2b7d',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b7d;
$custom-light: #a56ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b7d",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 125
  },
  "hsl": {
    "h": 299.268,
    "s": 48.81,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44124,
    "c": 0.1518,
    "h": 327.3
  },
  "luminance": 0.07494
}

Semantic roles & 50–950 ramp

primary
#7C2B7D
secondary
#58AD57
accent
#D84F51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C2B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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