#7C2E8F#7C2E8F

#7C2E8F is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.164 H 319.2°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#7C2E8F
RGBrgb(124, 46, 143)
HSLhsl(288, 51%, 37%)
HSVhsv(288, 68%, 56%)
CMYKcmyk(13.3%, 67.8%, 0%, 43.9%)
CIE-LABlab(34.44, 48.17, -38.40)
CIE-LCHlch(34.44, 61.60, 321.44°)
OKLaboklab(45.57% 0.1244 -0.1074)
OKLCHoklch(45.57% 0.164 319.2)
XYZxyz(14.2465, 8.2229, 26.8180)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2E8F #418F2E
analogous
#4B2E8F #7C2E8F #8F2E72
triadic
#7C2E8F #8F7C2E #2E8F7C
tetradic
#7C2E8F #8F4B2E #418F2E #2E728F
square
#7C2E8F #8F4B2E #418F2E #2E728F
split-complementary
#7C2E8F #728F2E #2E8F4B
monochromatic
#2C1032 #541F61 #7C2E8F #A43DBD #BB69CF

Accessibility & contrast

On white

7.94
#7C2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2E8F
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2E8F#FFFFFF#000000##FFFFFF
##7C2E8F1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A4C92
Deuteranopia (green-blind)
#34548D
Tritanopia (blue-blind)
#7C3F5A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7c2e8f;
/* rgb */ color: rgb(124, 46, 143);
/* oklch */ color: oklch(45.6% 0.164 319.2);
Tailwind
colors: {
  custom: {
    50: '#a56db0',
    500: '#7c2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #7c2e8f;
$custom-light: #a56db0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2e8f",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 288.247,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45574,
    "c": 0.16434,
    "h": 319.2
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#7C2E8F
secondary
#73B663
accent
#DB4D69
background
#FAF6FA
surface
#F4ECF5
border
#CEC7CF
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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