#7C2E8D#7C2E8D

#7C2E8D is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.162 H 320.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7C2E8D
RGBrgb(124, 46, 141)
HSLhsl(289, 51%, 37%)
HSVhsv(289, 67%, 55%)
CMYKcmyk(12.1%, 67.4%, 0%, 44.7%)
CIE-LABlab(34.32, 47.77, -37.37)
CIE-LCHlch(34.32, 60.65, 321.97°)
OKLaboklab(45.45% 0.1244 -0.1044)
OKLCHoklch(45.45% 0.162 320)
XYZxyz(14.0963, 8.1628, 26.0272)
Luminance0.0816 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E8D #3F8D2E
analogous
#4D2E8D #7C2E8D #8D2E6F
triadic
#7C2E8D #8D7C2E #2E8D7C
tetradic
#7C2E8D #8D4D2E #3F8D2E #2E6F8D
square
#7C2E8D #8D4D2E #3F8D2E #2E6F8D
split-complementary
#7C2E8D #6F8D2E #2E8D4D
monochromatic
#2B1031 #531F5F #7C2E8D #A53DBB #BB68CE

Accessibility & contrast

On white

7.98
#7C2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7C2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E8D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E8D#FFFFFF#000000##FFFFFF
##7C2E8D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4B90
Deuteranopia (green-blind)
#36538B
Tritanopia (blue-blind)
#7D3F59
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2e8d;
/* rgb */ color: rgb(124, 46, 141);
/* oklch */ color: oklch(45.4% 0.162 320.0);
Tailwind
colors: {
  custom: {
    50: '#a56daf',
    500: '#7c2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e8d;
$custom-light: #a56daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e8d",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 289.263,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45446,
    "c": 0.16241,
    "h": 320
  },
  "luminance": 0.08162
}

Semantic roles & 50–950 ramp

primary
#7C2E8D
secondary
#71B562
accent
#DA4E67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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