#79217B#79217B

#79217B is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.162 H 327.0°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#79217B
RGBrgb(121, 33, 123)
HSLhsl(299, 58%, 31%)
HSVhsv(299, 73%, 48%)
CMYKcmyk(1.6%, 73.2%, 0%, 51.8%)
CIE-LABlab(30.84, 48.97, -31.73)
CIE-LCHlch(30.84, 58.35, 327.06°)
OKLaboklab(42.5% 0.1356 -0.088)
OKLCHoklch(42.5% 0.162 327)
XYZxyz(12.0040, 6.5835, 19.3735)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79217B #237B21
analogous
#4C217B #79217B #7B2150
triadic
#79217B #7B7921 #217B79
tetradic
#79217B #7B4C21 #237B21 #21507B
square
#79217B #7B4C21 #237B21 #21507B
split-complementary
#79217B #507B21 #217B4C
monochromatic
#1A071A #4A144B #79217B #A82EAB #CB48CE

Accessibility & contrast

On white

9.07
#79217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #79217B
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79217B#FFFFFF#000000##FFFFFF
##79217B1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E417E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#7D2F4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #79217b;
/* rgb */ color: rgb(121, 33, 123);
/* oklch */ color: oklch(42.5% 0.162 327.0);
Tailwind
colors: {
  custom: {
    50: '#a366a1',
    500: '#79217b',
    950: '#000000',
  },
}
SCSS
$custom: #79217b;
$custom-light: #a366a1;
$custom-dark: #000000;
JSON
{
  "hex": "#79217b",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 298.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42498,
    "c": 0.16164,
    "h": 327
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#79217B
secondary
#4CAE4A
accent
#E1474A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #79217B

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

Preview Lab → · Contrast checker → · Palette generator →

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