#79227E#79227E

#79227E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.163 H 325.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#79227E
RGBrgb(121, 34, 126)
HSLhsl(297, 58%, 31%)
HSVhsv(297, 73%, 49%)
CMYKcmyk(4%, 73%, 0%, 50.6%)
CIE-LABlab(31.15, 49.13, -33.12)
CIE-LCHlch(31.15, 59.26, 326.02°)
OKLaboklab(42.78% 0.1345 -0.0921)
OKLCHoklch(42.78% 0.163 325.6)
XYZxyz(12.2228, 6.7162, 20.3872)
Luminance0.0672 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79227E #277E22
analogous
#4B227E #79227E #7E2255
triadic
#79227E #7E7922 #227E79
tetradic
#79227E #7E4B22 #277E22 #22557E
square
#79227E #7E4B22 #277E22 #22557E
split-complementary
#79227E #557E22 #227E4B
monochromatic
#1C081E #4B154E #79227E #A72FAE #C84CCF

Accessibility & contrast

On white

8.96
#79227E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#79227E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #79227E
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79227E#FFFFFF#000000##FFFFFF
##79227E1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4281
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#7C314E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #79227e;
/* rgb */ color: rgb(121, 34, 126);
/* oklch */ color: oklch(42.8% 0.163 325.6);
Tailwind
colors: {
  custom: {
    50: '#a366a4',
    500: '#79227e',
    950: '#000000',
  },
}
SCSS
$custom: #79227e;
$custom-light: #a366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#79227e",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 126
  },
  "hsl": {
    "h": 296.739,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4278,
    "c": 0.163,
    "h": 325.6
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#79227E
secondary
#51B14B
accent
#E1474F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #79227E

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

Preview Lab → · Contrast checker → · Palette generator →

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