#7C277E#7C277E

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

Color values

HEX#7C277E
RGBrgb(124, 39, 126)
HSLhsl(299, 53%, 32%)
HSVhsv(299, 69%, 49%)
CMYKcmyk(1.6%, 69%, 0%, 50.6%)
CIE-LABlab(32.35, 47.89, -31.18)
CIE-LCHlch(32.35, 57.14, 326.93°)
OKLaboklab(43.74% 0.1325 -0.0864)
OKLCHoklch(43.74% 0.158 326.9)
XYZxyz(12.8034, 7.2433, 20.4584)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C277E #297E27
analogous
#51277E #7C277E #7E2754
triadic
#7C277E #7E7C27 #277E7C
tetradic
#7C277E #7E5127 #297E27 #27547E
square
#7C277E #7E5127 #297E27 #27547E
split-complementary
#7C277E #547E27 #277E51
monochromatic
#200A21 #4E194F #7C277E #AA35AD #C855CA

Accessibility & contrast

On white

8.58
#7C277E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7C277E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C277E
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C277E#FFFFFF#000000##FFFFFF
##7C277E1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184581
Deuteranopia (green-blind)
#3B507C
Tritanopia (blue-blind)
#80344F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c277e;
/* rgb */ color: rgb(124, 39, 126);
/* oklch */ color: oklch(43.7% 0.158 326.9);
Tailwind
colors: {
  custom: {
    50: '#a569a4',
    500: '#7c277e',
    950: '#000000',
  },
}
SCSS
$custom: #7c277e;
$custom-light: #a569a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c277e",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 126
  },
  "hsl": {
    "h": 298.621,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43743,
    "c": 0.1582,
    "h": 326.9
  },
  "luminance": 0.07242
}

Semantic roles & 50–950 ramp

primary
#7C277E
secondary
#54AF52
accent
#DC4C4F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7C277E

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

Preview Lab → · Contrast checker → · Palette generator →

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