#7C218E#7C218E

#7C218E is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.179 H 320.4°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7C218E
RGBrgb(124, 33, 142)
HSLhsl(290, 62%, 34%)
HSVhsv(290, 77%, 56%)
CMYKcmyk(12.7%, 76.8%, 0%, 44.3%)
CIE-LABlab(32.54, 53.18, -40.83)
CIE-LCHlch(32.54, 67.05, 322.48°)
OKLaboklab(44.19% 0.1382 -0.1145)
OKLCHoklch(44.19% 0.179 320.4)
XYZxyz(13.7379, 7.3265, 26.2765)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C218E #338E21
analogous
#46218E #7C218E #8E216A
triadic
#7C218E #8E7C21 #218E7C
tetradic
#7C218E #8E4621 #338E21 #216A8E
square
#7C218E #8E4621 #338E21 #216A8E
split-complementary
#7C218E #6A8E21 #218E46
monochromatic
#250A2B #51155C #7C218E #A72DC0 #C152D7

Accessibility & contrast

On white

8.52
#7C218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7C218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C218E
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C218E#FFFFFF#000000##FFFFFF
##7C218E1.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#2C508C
Tritanopia (blue-blind)
#7D3756
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7c218e;
/* rgb */ color: rgb(124, 33, 142);
/* oklch */ color: oklch(44.2% 0.179 320.4);
Tailwind
colors: {
  custom: {
    50: '#a667b0',
    500: '#7c218e',
    950: '#000000',
  },
}
SCSS
$custom: #7c218e;
$custom-light: #a667b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c218e",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 290.092,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44193,
    "c": 0.17945,
    "h": 320.4
  },
  "luminance": 0.07326
}

Semantic roles & 50–950 ramp

primary
#7C218E
secondary
#62BA50
accent
#E5425D
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C218E

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

Preview Lab → · Contrast checker → · Palette generator →

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