#79217C#79217C

#79217C is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.163 H 326.6°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#79217C
RGBrgb(121, 33, 124)
HSLhsl(298, 58%, 31%)
HSVhsv(298, 73%, 49%)
CMYKcmyk(2.4%, 73.4%, 0%, 51.4%)
CIE-LABlab(30.90, 49.15, -32.27)
CIE-LCHlch(30.90, 58.79, 326.71°)
OKLaboklab(42.56% 0.1356 -0.0896)
OKLCHoklch(42.56% 0.163 326.6)
XYZxyz(12.0669, 6.6087, 19.7049)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79217C #247C21
analogous
#4B217C #79217C #7C2151
triadic
#79217C #7C7921 #217C79
tetradic
#79217C #7C4B21 #247C21 #21517C
square
#79217C #7C4B21 #247C21 #21517C
split-complementary
#79217C #517C21 #217C4B
monochromatic
#1B071B #4A144C #79217C #A82EAC #CA49CF

Accessibility & contrast

On white

9.05
#79217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#79217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #79217C
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79217C#FFFFFF#000000##FFFFFF
##79217C1.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C427F
Deuteranopia (green-blind)
#364D7A
Tritanopia (blue-blind)
#7C2F4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #79217c;
/* rgb */ color: rgb(121, 33, 124);
/* oklch */ color: oklch(42.6% 0.163 326.6);
Tailwind
colors: {
  custom: {
    50: '#a366a2',
    500: '#79217c',
    950: '#000000',
  },
}
SCSS
$custom: #79217c;
$custom-light: #a366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#79217c",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 298.022,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4256,
    "c": 0.1625,
    "h": 326.6
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#79217C
secondary
#4DAF4A
accent
#E1474C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #79217C

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

Preview Lab → · Contrast checker → · Palette generator →

#79217C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva