#7C2E71#7C2E71

#7C2E71 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.8% C 0.137 H 333.5°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7C2E71
RGBrgb(124, 46, 113)
HSLhsl(308, 46%, 33%)
HSVhsv(308, 63%, 49%)
CMYKcmyk(0%, 62.9%, 8.9%, 51.4%)
CIE-LABlab(32.77, 42.48, -22.34)
CIE-LCHlch(32.77, 47.99, 332.26°)
OKLaboklab(43.82% 0.1225 -0.061)
OKLCHoklch(43.82% 0.137 333.5)
XYZxyz(12.2699, 7.4323, 16.4079)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E71 #2E7C39
analogous
#602E7C #7C2E71 #7C2E4A
triadic
#7C2E71 #717C2E #2E717C
tetradic
#7C2E71 #7C602E #2E7C39 #2E4A7C
square
#7C2E71 #7C602E #2E7C39 #2E4A7C
split-complementary
#7C2E71 #4A7C2E #2E7C60
monochromatic
#230D20 #4F1D48 #7C2E71 #A93F9A #C460B6

Accessibility & contrast

On white

8.45
#7C2E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7C2E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E71
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E71#FFFFFF#000000##FFFFFF
##7C2E711.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4673
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#82344B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2e71;
/* rgb */ color: rgb(124, 46, 113);
/* oklch */ color: oklch(43.8% 0.137 333.5);
Tailwind
colors: {
  custom: {
    50: '#a46c9a',
    500: '#7c2e71',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e71;
$custom-light: #a46c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e71",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 308.462,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.4382,
    "c": 0.13686,
    "h": 333.5
  },
  "luminance": 0.07431
}

Semantic roles & 50–950 ramp

primary
#7C2E71
secondary
#5BAB66
accent
#D66552
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7C2E71

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

Preview Lab → · Contrast checker → · Palette generator →

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