#792173#792173

#792173 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.155 H 330.9°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#792173
RGBrgb(121, 33, 115)
HSLhsl(304, 57%, 30%)
HSVhsv(304, 73%, 47%)
CMYKcmyk(0%, 72.7%, 5%, 52.5%)
CIE-LABlab(30.38, 47.56, -27.40)
CIE-LCHlch(30.38, 54.88, 330.05°)
OKLaboklab(42.02% 0.1354 -0.0754)
OKLCHoklch(42.02% 0.155 330.9)
XYZxyz(11.5235, 6.3914, 16.8431)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792173 #217927
analogous
#532179 #792173 #792147
triadic
#792173 #737921 #217379
tetradic
#792173 #795321 #217927 #214779
square
#792173 #795321 #217927 #214779
split-complementary
#792173 #477921 #217953
monochromatic
#190718 #491445 #792173 #A92EA1 #CD47C4

Accessibility & contrast

On white

9.22
#792173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#792173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792173
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792173#FFFFFF#000000##FFFFFF
##7921731.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194075
Deuteranopia (green-blind)
#3B4C71
Tritanopia (blue-blind)
#7E2B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #792173;
/* rgb */ color: rgb(121, 33, 115);
/* oklch */ color: oklch(42.0% 0.155 330.9);
Tailwind
colors: {
  custom: {
    50: '#a3659b',
    500: '#792173',
    950: '#000000',
  },
}
SCSS
$custom: #792173;
$custom-light: #a3659b;
$custom-dark: #000000;
JSON
{
  "hex": "#792173",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 304.091,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42019,
    "c": 0.15497,
    "h": 330.9
  },
  "luminance": 0.0639
}

Semantic roles & 50–950 ramp

primary
#792173
secondary
#4AAC50
accent
#E05247
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792173

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

Preview Lab → · Contrast checker → · Palette generator →

#792173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva