#7C217D#7C217D

#7C217D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.1% C 0.165 H 327.5°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7C217D
RGBrgb(124, 33, 125)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 74%, 49%)
CMYKcmyk(0.8%, 73.6%, 0%, 51%)
CIE-LABlab(31.47, 50.03, -31.95)
CIE-LCHlch(31.47, 59.37, 327.44°)
OKLaboklab(43.09% 0.1391 -0.0886)
OKLCHoklch(43.09% 0.165 327.5)
XYZxyz(12.5575, 6.8544, 20.0597)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C217D #227D21
analogous
#4E217D #7C217D #7D2150
triadic
#7C217D #7D7C21 #217D7C
tetradic
#7C217D #7D4E21 #227D21 #21507D
square
#7C217D #7D4E21 #227D21 #21507D
split-complementary
#7C217D #507D21 #217D4E
monochromatic
#1C071C #4C144D #7C217D #AC2EAD #CE49CF

Accessibility & contrast

On white

8.86
#7C217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7C217D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C217D
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C217D#FFFFFF#000000##FFFFFF
##7C217D1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4380
Deuteranopia (green-blind)
#394E7B
Tritanopia (blue-blind)
#802F4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c217d;
/* rgb */ color: rgb(124, 33, 125);
/* oklch */ color: oklch(43.1% 0.165 327.5);
Tailwind
colors: {
  custom: {
    50: '#a566a3',
    500: '#7c217d',
    950: '#000000',
  },
}
SCSS
$custom: #7c217d;
$custom-light: #a566a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c217d",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 299.348,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.43091,
    "c": 0.16488,
    "h": 327.5
  },
  "luminance": 0.06853
}

Semantic roles & 50–950 ramp

primary
#7C217D
secondary
#4BB04A
accent
#E14648
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C217D

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

Preview Lab → · Contrast checker → · Palette generator →

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