#792170#792170

#792170 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.8% C 0.153 H 332.4°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#792170
RGBrgb(121, 33, 112)
HSLhsl(306, 57%, 30%)
HSVhsv(306, 73%, 47%)
CMYKcmyk(0%, 72.7%, 7.4%, 52.5%)
CIE-LABlab(30.21, 47.05, -25.75)
CIE-LCHlch(30.21, 53.63, 331.31°)
OKLaboklab(41.85% 0.1352 -0.0707)
OKLCHoklch(41.85% 0.153 332.4)
XYZxyz(11.3537, 6.3234, 15.9487)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792170 #21792A
analogous
#562179 #792170 #792144
triadic
#792170 #707921 #217079
tetradic
#792170 #795621 #21792A #214479
square
#792170 #795621 #21792A #214479
split-complementary
#792170 #447921 #217956
monochromatic
#190717 #491443 #792170 #A92E9D #CD47BF

Accessibility & contrast

On white

9.27
#792170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#792170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792170
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792170#FFFFFF#000000##FFFFFF
##7921701.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F72
Deuteranopia (green-blind)
#3D4C6E
Tritanopia (blue-blind)
#7E2A46
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #792170;
/* rgb */ color: rgb(121, 33, 112);
/* oklch */ color: oklch(41.8% 0.153 332.4);
Tailwind
colors: {
  custom: {
    50: '#a36599',
    500: '#792170',
    950: '#000000',
  },
}
SCSS
$custom: #792170;
$custom-light: #a36599;
$custom-dark: #000000;
JSON
{
  "hex": "#792170",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 306.136,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41846,
    "c": 0.15254,
    "h": 332.4
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#792170
secondary
#4AAC54
accent
#E05747
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792170

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

Preview Lab → · Contrast checker → · Palette generator →

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