#7C277D#7C277D

#7C277D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.7% C 0.157 H 327.4°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7C277D
RGBrgb(124, 39, 125)
HSLhsl(299, 52%, 32%)
HSVhsv(299, 69%, 49%)
CMYKcmyk(0.8%, 68.8%, 0%, 51%)
CIE-LABlab(32.30, 47.70, -30.65)
CIE-LCHlch(32.30, 56.70, 327.28°)
OKLaboklab(43.68% 0.1325 -0.0848)
OKLCHoklch(43.68% 0.157 327.4)
XYZxyz(12.7392, 7.2177, 20.1202)
Luminance0.0722 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C277D #287D27
analogous
#51277D #7C277D #7D2753
triadic
#7C277D #7D7C27 #277D7C
tetradic
#7C277D #7D5127 #287D27 #27537D
square
#7C277D #7D5127 #287D27 #27537D
split-complementary
#7C277D #537D27 #277D51
monochromatic
#1F0A20 #4E184E #7C277D #AA36AC #C855CA

Accessibility & contrast

On white

8.59
#7C277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7C277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C277D
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C277D#FFFFFF#000000##FFFFFF
##7C277D1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A457F
Deuteranopia (green-blind)
#3C507B
Tritanopia (blue-blind)
#80334F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c277d;
/* rgb */ color: rgb(124, 39, 125);
/* oklch */ color: oklch(43.7% 0.157 327.4);
Tailwind
colors: {
  custom: {
    50: '#a569a3',
    500: '#7c277d',
    950: '#000000',
  },
}
SCSS
$custom: #7c277d;
$custom-light: #a569a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c277d",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 299.302,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43683,
    "c": 0.15733,
    "h": 327.4
  },
  "luminance": 0.07217
}

Semantic roles & 50–950 ramp

primary
#7C277D
secondary
#52AF51
accent
#DC4C4E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C277D

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

Preview Lab → · Contrast checker → · Palette generator →

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