#79227F#79227F

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

Color values

HEX#79227F
RGBrgb(121, 34, 127)
HSLhsl(296, 58%, 32%)
HSVhsv(296, 73%, 50%)
CMYKcmyk(4.7%, 73.2%, 0%, 50.2%)
CIE-LABlab(31.21, 49.32, -33.65)
CIE-LCHlch(31.21, 59.71, 325.69°)
OKLaboklab(42.84% 0.1345 -0.0936)
OKLCHoklch(42.84% 0.164 325.2)
XYZxyz(12.2877, 6.7421, 20.7287)
Luminance0.0674 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#79227F #287F22
analogous
#4B227F #79227F #7F2257
triadic
#79227F #7F7922 #227F79
tetradic
#79227F #7F4B22 #287F22 #22577F
square
#79227F #7F4B22 #287F22 #22577F
split-complementary
#79227F #577F22 #227F4B
monochromatic
#1D081E #4B154F #79227F #A72FAF #C74CCF

Accessibility & contrast

On white

8.94
#79227F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#79227F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #79227F
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##79227F#FFFFFF#000000##FFFFFF
##79227F1.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084382
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#7C314E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #79227f;
/* rgb */ color: rgb(121, 34, 127);
/* oklch */ color: oklch(42.8% 0.164 325.2);
Tailwind
colors: {
  custom: {
    50: '#a366a4',
    500: '#79227f',
    950: '#000000',
  },
}
SCSS
$custom: #79227f;
$custom-light: #a366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#79227f",
  "rgb": {
    "r": 121,
    "g": 34,
    "b": 127
  },
  "hsl": {
    "h": 296.129,
    "s": 57.764,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42843,
    "c": 0.16386,
    "h": 325.2
  },
  "luminance": 0.06741
}

Semantic roles & 50–950 ramp

primary
#79227F
secondary
#52B24B
accent
#E14751
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #79227F

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

Preview Lab → · Contrast checker → · Palette generator →

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