#7C2C8D#7C2C8D

#7C2C8D is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.165 H 320.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#7C2C8D
RGBrgb(124, 44, 141)
HSLhsl(289, 52%, 36%)
HSVhsv(289, 69%, 55%)
CMYKcmyk(12.1%, 68.8%, 0%, 44.7%)
CIE-LABlab(34.00, 48.65, -37.87)
CIE-LCHlch(34.00, 61.65, 322.10°)
OKLaboklab(45.22% 0.1267 -0.1059)
OKLCHoklch(45.22% 0.165 320.1)
XYZxyz(14.0200, 8.0102, 26.0018)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2C8D #3D8D2C
analogous
#4C2C8D #7C2C8D #8D2C6E
triadic
#7C2C8D #8D7C2C #2C8D7C
tetradic
#7C2C8D #8D4C2C #3D8D2C #2C6E8D
square
#7C2C8D #8D4C2C #3D8D2C #2C6E8D
split-complementary
#7C2C8D #6E8D2C #2C8D4C
monochromatic
#2A0F30 #531D5E #7C2C8D #A53BBC #BC65CF

Accessibility & contrast

On white

8.07
#7C2C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#7C2C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2C8D
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2C8D#FFFFFF#000000##FFFFFF
##7C2C8D1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#094A90
Deuteranopia (green-blind)
#35538B
Tritanopia (blue-blind)
#7D3D59
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2c8d;
/* rgb */ color: rgb(124, 44, 141);
/* oklch */ color: oklch(45.2% 0.165 320.1);
Tailwind
colors: {
  custom: {
    50: '#a56caf',
    500: '#7c2c8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c2c8d;
$custom-light: #a56caf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2c8d",
  "rgb": {
    "r": 124,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 289.485,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45219,
    "c": 0.16515,
    "h": 320.1
  },
  "luminance": 0.0801
}

Semantic roles & 50–950 ramp

primary
#7C2C8D
secondary
#6FB560
accent
#DC4C65
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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