#79227C#79227C

#79227C is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.161 H 326.5°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#79227C
RGBrgb(121, 34, 124)
HSLhsl(298, 57%, 31%)
HSVhsv(298, 73%, 49%)
CMYKcmyk(2.4%, 72.6%, 0%, 51.4%)
CIE-LABlab(31.03, 48.77, -32.06)
CIE-LCHlch(31.03, 58.36, 326.68°)
OKLaboklab(42.66% 0.1345 -0.0889)
OKLCHoklch(42.66% 0.161 326.5)
XYZxyz(12.0951, 6.6651, 19.7143)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79227C #257C22
analogous
#4C227C #79227C #7C2252
triadic
#79227C #7C7922 #227C79
tetradic
#79227C #7C4C22 #257C22 #22527C
square
#79227C #7C4C22 #257C22 #22527C
split-complementary
#79227C #527C22 #227C4C
monochromatic
#1B081C #4A154C #79227C #A82FAC #C94BCE

Accessibility & contrast

On white

9.00
#79227C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#79227C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #79227C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79227C#FFFFFF#000000##FFFFFF
##79227C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F427F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#7C304C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #79227c;
/* rgb */ color: rgb(121, 34, 124);
/* oklch */ color: oklch(42.7% 0.161 326.5);
Tailwind
colors: {
  custom: {
    50: '#a366a2',
    500: '#79227c',
    950: '#000000',
  },
}
SCSS
$custom: #79227c;
$custom-light: #a366a2;
$custom-dark: #000000;
JSON
{
  "hex": "#79227c",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 124
  },
  "hsl": {
    "h": 298,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42655,
    "c": 0.16128,
    "h": 326.5
  },
  "luminance": 0.06664
}

Semantic roles & 50–950 ramp

primary
#79227C
secondary
#4EAF4B
accent
#E0484D
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #79227C

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

Preview Lab → · Contrast checker → · Palette generator →

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