#7C2E8E#7C2E8E

#7C2E8E is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.163 H 319.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7C2E8E
RGBrgb(124, 46, 142)
HSLhsl(289, 51%, 37%)
HSVhsv(289, 68%, 56%)
CMYKcmyk(12.7%, 67.6%, 0%, 44.3%)
CIE-LABlab(34.38, 47.97, -37.88)
CIE-LCHlch(34.38, 61.12, 321.70°)
OKLaboklab(45.51% 0.1244 -0.1059)
OKLCHoklch(45.51% 0.163 319.6)
XYZxyz(14.1710, 8.1927, 26.4208)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E8E #408E2E
analogous
#4C2E8E #7C2E8E #8E2E70
triadic
#7C2E8E #8E7C2E #2E8E7C
tetradic
#7C2E8E #8E4C2E #408E2E #2E708E
square
#7C2E8E #8E4C2E #408E2E #2E708E
split-complementary
#7C2E8E #708E2E #2E8E4C
monochromatic
#2B1032 #541F60 #7C2E8E #A43DBC #BB68CE

Accessibility & contrast

On white

7.96
#7C2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7C2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2E8E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E8E#FFFFFF#000000##FFFFFF
##7C2E8E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4C91
Deuteranopia (green-blind)
#35548C
Tritanopia (blue-blind)
#7C3F5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2e8e;
/* rgb */ color: rgb(124, 46, 142);
/* oklch */ color: oklch(45.5% 0.163 319.6);
Tailwind
colors: {
  custom: {
    50: '#a56daf',
    500: '#7c2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e8e;
$custom-light: #a56daf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e8e",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 288.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.4551,
    "c": 0.16337,
    "h": 319.6
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#7C2E8E
secondary
#72B563
accent
#DB4D68
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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