#7C218C#7C218C

#7C218C is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.1% C 0.178 H 321.2°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#7C218C
RGBrgb(124, 33, 140)
HSLhsl(291, 62%, 34%)
HSVhsv(291, 76%, 55%)
CMYKcmyk(11.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(32.41, 52.80, -39.81)
CIE-LCHlch(32.41, 66.12, 322.99°)
OKLaboklab(44.06% 0.1384 -0.1115)
OKLCHoklch(44.06% 0.178 321.2)
XYZxyz(13.5891, 7.2670, 25.4927)
Luminance0.0727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C218C #318C21
analogous
#47218C #7C218C #8C2167
triadic
#7C218C #8C7C21 #218C7C
tetradic
#7C218C #8C4721 #318C21 #21678C
square
#7C218C #8C4721 #318C21 #21678C
split-complementary
#7C218C #678C21 #218C47
monochromatic
#240A29 #50155A #7C218C #A82DBE #C251D6

Accessibility & contrast

On white

8.56
#7C218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C218C
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C218C#FFFFFF#000000##FFFFFF
##7C218C1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#2E4F8A
Tritanopia (blue-blind)
#7D3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c218c;
/* rgb */ color: rgb(124, 33, 140);
/* oklch */ color: oklch(44.1% 0.178 321.2);
Tailwind
colors: {
  custom: {
    50: '#a567ae',
    500: '#7c218c',
    950: '#000000',
  },
}
SCSS
$custom: #7c218c;
$custom-light: #a567ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7c218c",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 291.028,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44057,
    "c": 0.17771,
    "h": 321.2
  },
  "luminance": 0.07266
}

Semantic roles & 50–950 ramp

primary
#7C218C
secondary
#5FB94F
accent
#E5435B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C218C

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

Preview Lab → · Contrast checker → · Palette generator →

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