#7C217B#7C217B

#7C217B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.163 H 328.4°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7C217B
RGBrgb(124, 33, 123)
HSLhsl(301, 58%, 31%)
HSVhsv(301, 73%, 49%)
CMYKcmyk(0%, 73.4%, 0.8%, 51.4%)
CIE-LABlab(31.36, 49.68, -30.88)
CIE-LCHlch(31.36, 58.50, 328.14°)
OKLaboklab(42.97% 0.1391 -0.0854)
OKLCHoklch(42.97% 0.163 328.4)
XYZxyz(12.4311, 6.8038, 19.3936)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C217B #217C22
analogous
#4F217C #7C217B #7C214D
triadic
#7C217B #7B7C21 #217B7C
tetradic
#7C217B #7C4F21 #217C22 #214D7C
square
#7C217B #7C4F21 #217C22 #214D7C
split-complementary
#7C217B #4D7C21 #217C4F
monochromatic
#1B071B #4C144B #7C217B #AC2EAB #CF49CD

Accessibility & contrast

On white

8.90
#7C217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7C217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C217B
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C217B#FFFFFF#000000##FFFFFF
##7C217B1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427E
Deuteranopia (green-blind)
#3A4E79
Tritanopia (blue-blind)
#802E4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c217b;
/* rgb */ color: rgb(124, 33, 123);
/* oklch */ color: oklch(43.0% 0.163 328.4);
Tailwind
colors: {
  custom: {
    50: '#a566a1',
    500: '#7c217b',
    950: '#000000',
  },
}
SCSS
$custom: #7c217b;
$custom-light: #a566a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c217b",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 300.659,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42969,
    "c": 0.16322,
    "h": 328.4
  },
  "luminance": 0.06803
}

Semantic roles & 50–950 ramp

primary
#7C217B
secondary
#4AAF4B
accent
#E14847
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C217B

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

Preview Lab → · Contrast checker → · Palette generator →

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