#7C2D86#7C2D86

#7C2D86 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.9% C 0.157 H 323.0°. Best body text is #FFFFFF at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#7C2D86
RGBrgb(124, 45, 134)
HSLhsl(293, 50%, 35%)
HSVhsv(293, 66%, 53%)
CMYKcmyk(7.5%, 66.4%, 0%, 47.5%)
CIE-LABlab(33.74, 46.82, -33.97)
CIE-LCHlch(33.74, 57.85, 324.04°)
OKLaboklab(44.89% 0.1256 -0.0945)
OKLCHoklch(44.89% 0.157 323)
XYZxyz(13.5532, 7.8838, 23.3575)
Luminance0.0788 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D86 #37862D
analogous
#4F2D86 #7C2D86 #862D64
triadic
#7C2D86 #867C2D #2D867C
tetradic
#7C2D86 #864F2D #37862D #2D6486
square
#7C2D86 #864F2D #37862D #2D6486
split-complementary
#7C2D86 #64862D #2D864F
monochromatic
#270E2A #521E58 #7C2D86 #A63CB4 #BF63CB

Accessibility & contrast

On white

8.15
#7C2D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7C2D86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2D86
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D86#FFFFFF#000000##FFFFFF
##7C2D861.008.152.588.15
#FFFFFF8.151.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194989
Deuteranopia (green-blind)
#3A5284
Tritanopia (blue-blind)
#7E3B55
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2d86;
/* rgb */ color: rgb(124, 45, 134);
/* oklch */ color: oklch(44.9% 0.157 323.0);
Tailwind
colors: {
  custom: {
    50: '#a56caa',
    500: '#7c2d86',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d86;
$custom-light: #a56caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d86",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 134
  },
  "hsl": {
    "h": 293.258,
    "s": 49.721,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44892,
    "c": 0.15718,
    "h": 323
  },
  "luminance": 0.07883
}

Semantic roles & 50–950 ramp

primary
#7C2D86
secondary
#67B15E
accent
#D94F5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2D86

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

Preview Lab → · Contrast checker → · Palette generator →

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