#7C2B7E#7C2B7E

#7C2B7E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.153 H 326.8°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#7C2B7E
RGBrgb(124, 43, 126)
HSLhsl(299, 49%, 33%)
HSVhsv(299, 66%, 49%)
CMYKcmyk(1.6%, 65.9%, 0%, 50.6%)
CIE-LABlab(32.96, 46.18, -30.22)
CIE-LCHlch(32.96, 55.19, 326.80°)
OKLaboklab(44.18% 0.1278 -0.0836)
OKLCHoklch(44.18% 0.153 326.8)
XYZxyz(12.9417, 7.5200, 20.5045)
Luminance0.0752 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2B7E #2D7E2B
analogous
#522B7E #7C2B7E #7E2B56
triadic
#7C2B7E #7E7C2B #2B7E7C
tetradic
#7C2B7E #7E522B #2D7E2B #2B567E
square
#7C2B7E #7E522B #2D7E2B #2B567E
split-complementary
#7C2B7E #567E2B #2B7E52
monochromatic
#220C23 #4F1B50 #7C2B7E #A93BAC #C55CC7

Accessibility & contrast

On white

8.39
#7C2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2B7E
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2B7E#FFFFFF#000000##FFFFFF
##7C2B7E1.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4780
Deuteranopia (green-blind)
#3D517C
Tritanopia (blue-blind)
#7F3650
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2b7e;
/* rgb */ color: rgb(124, 43, 126);
/* oklch */ color: oklch(44.2% 0.153 326.8);
Tailwind
colors: {
  custom: {
    50: '#a56ba4',
    500: '#7c2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #7c2b7e;
$custom-light: #a56ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2b7e",
  "rgb": {
    "r": 124,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 298.554,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.44182,
    "c": 0.15269,
    "h": 326.8
  },
  "luminance": 0.07519
}

Semantic roles & 50–950 ramp

primary
#7C2B7E
secondary
#5AAD58
accent
#D94F52
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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