#7C218B#7C218B

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

Color values

HEX#7C218B
RGBrgb(124, 33, 139)
HSLhsl(292, 62%, 34%)
HSVhsv(292, 76%, 55%)
CMYKcmyk(10.8%, 76.3%, 0%, 45.5%)
CIE-LABlab(32.34, 52.61, -39.29)
CIE-LCHlch(32.34, 65.66, 323.24°)
OKLaboklab(43.99% 0.1385 -0.11)
OKLCHoklch(43.99% 0.177 321.5)
XYZxyz(13.5157, 7.2376, 25.1062)
Luminance0.0724 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C218B #308B21
analogous
#47218B #7C218B #8B2165
triadic
#7C218B #8B7C21 #218B7C
tetradic
#7C218B #8B4721 #308B21 #21658B
square
#7C218B #8B4721 #308B21 #21658B
split-complementary
#7C218B #658B21 #218B47
monochromatic
#240A28 #50155A #7C218B #A82DBC #C351D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C218B#FFFFFF#000000##FFFFFF
##7C218B1.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)
#00468E
Deuteranopia (green-blind)
#2F4F89
Tritanopia (blue-blind)
#7D3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c218b;
/* rgb */ color: rgb(124, 33, 139);
/* oklch */ color: oklch(44.0% 0.177 321.5);
Tailwind
colors: {
  custom: {
    50: '#a567ad',
    500: '#7c218b',
    950: '#000000',
  },
}
SCSS
$custom: #7c218b;
$custom-light: #a567ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c218b",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 291.509,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.4399,
    "c": 0.17684,
    "h": 321.5
  },
  "luminance": 0.07237
}

Semantic roles & 50–950 ramp

primary
#7C218B
secondary
#5EB94F
accent
#E5435A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C218B

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

Preview Lab → · Contrast checker → · Palette generator →

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