#7C2D87#7C2D87

#7C2D87 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.158 H 322.6°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#7C2D87
RGBrgb(124, 45, 135)
HSLhsl(293, 50%, 35%)
HSVhsv(293, 67%, 53%)
CMYKcmyk(8.1%, 66.7%, 0%, 47.1%)
CIE-LABlab(33.80, 47.02, -34.49)
CIE-LCHlch(33.80, 58.31, 323.74°)
OKLaboklab(44.95% 0.1256 -0.096)
OKLCHoklch(44.95% 0.158 322.6)
XYZxyz(13.6233, 7.9119, 23.7265)
Luminance0.0791 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2D87 #38872D
analogous
#4F2D87 #7C2D87 #872D65
triadic
#7C2D87 #877C2D #2D877C
tetradic
#7C2D87 #874F2D #38872D #2D6587
square
#7C2D87 #874F2D #38872D #2D6587
split-complementary
#7C2D87 #65872D #2D874F
monochromatic
#280E2B #521E59 #7C2D87 #A63CB5 #BE63CB

Accessibility & contrast

On white

8.13
#7C2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2D87
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2D87#FFFFFF#000000##FFFFFF
##7C2D871.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174A8A
Deuteranopia (green-blind)
#395385
Tritanopia (blue-blind)
#7E3B56
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2d87;
/* rgb */ color: rgb(124, 45, 135);
/* oklch */ color: oklch(45.0% 0.158 322.6);
Tailwind
colors: {
  custom: {
    50: '#a56caa',
    500: '#7c2d87',
    950: '#000000',
  },
}
SCSS
$custom: #7c2d87;
$custom-light: #a56caa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2d87",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 292.667,
    "s": 50,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44954,
    "c": 0.15812,
    "h": 322.6
  },
  "luminance": 0.07911
}

Semantic roles & 50–950 ramp

primary
#7C2D87
secondary
#68B25E
accent
#DA4E5F
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7C2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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