#7C2E72#7C2E72

#7C2E72 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 43.9% C 0.138 H 333.0°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#7C2E72
RGBrgb(124, 46, 114)
HSLhsl(308, 46%, 33%)
HSVhsv(308, 63%, 49%)
CMYKcmyk(0%, 62.9%, 8.1%, 51.4%)
CIE-LABlab(32.82, 42.65, -22.90)
CIE-LCHlch(32.82, 48.41, 331.77°)
OKLaboklab(43.87% 0.1227 -0.0625)
OKLCHoklch(43.87% 0.138 333)
XYZxyz(12.3265, 7.4549, 16.7060)
Luminance0.0745 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E72 #2E7C38
analogous
#5F2E7C #7C2E72 #7C2E4B
triadic
#7C2E72 #727C2E #2E727C
tetradic
#7C2E72 #7C5F2E #2E7C38 #2E4B7C
square
#7C2E72 #7C5F2E #2E7C38 #2E4B7C
split-complementary
#7C2E72 #4B7C2E #2E7C5F
monochromatic
#230D20 #4F1D49 #7C2E72 #A93F9B #C460B7

Accessibility & contrast

On white

8.43
#7C2E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2E72
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E72#FFFFFF#000000##FFFFFF
##7C2E721.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C4674
Deuteranopia (green-blind)
#455170
Tritanopia (blue-blind)
#81344B
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c2e72;
/* rgb */ color: rgb(124, 46, 114);
/* oklch */ color: oklch(43.9% 0.138 333.0);
Tailwind
colors: {
  custom: {
    50: '#a46c9b',
    500: '#7c2e72',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e72;
$custom-light: #a46c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e72",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 307.692,
    "s": 45.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43873,
    "c": 0.1377,
    "h": 333
  },
  "luminance": 0.07454
}

Semantic roles & 50–950 ramp

primary
#7C2E72
secondary
#5BAB65
accent
#D66352
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #7C2E72

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

Preview Lab → · Contrast checker → · Palette generator →

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