#792178#792178

#792178 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.159 H 328.4°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#792178
RGBrgb(121, 33, 120)
HSLhsl(301, 57%, 30%)
HSVhsv(301, 73%, 47%)
CMYKcmyk(0%, 72.7%, 0.8%, 52.5%)
CIE-LABlab(30.66, 48.43, -30.12)
CIE-LCHlch(30.66, 57.03, 328.12°)
OKLaboklab(42.32% 0.1356 -0.0833)
OKLCHoklch(42.32% 0.159 328.4)
XYZxyz(11.8190, 6.5096, 18.3996)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#792178 #217922
analogous
#4E2179 #792178 #79214C
triadic
#792178 #787921 #217879
tetradic
#792178 #794E21 #217922 #214C79
square
#792178 #794E21 #217922 #214C79
split-complementary
#792178 #4C7921 #21794E
monochromatic
#190719 #491448 #792178 #A92EA8 #CD47CB

Accessibility & contrast

On white

9.12
#792178 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#792178 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #792178
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##792178#FFFFFF#000000##FFFFFF
##7921781.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13417A
Deuteranopia (green-blind)
#394C76
Tritanopia (blue-blind)
#7D2E4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #792178;
/* rgb */ color: rgb(121, 33, 120);
/* oklch */ color: oklch(42.3% 0.159 328.4);
Tailwind
colors: {
  custom: {
    50: '#a3659f',
    500: '#792178',
    950: '#000000',
  },
}
SCSS
$custom: #792178;
$custom-light: #a3659f;
$custom-dark: #000000;
JSON
{
  "hex": "#792178",
  "rgb": {
    "r": 121,
    "g": 33,
    "b": 120
  },
  "hsl": {
    "h": 300.682,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42315,
    "c": 0.15912,
    "h": 328.4
  },
  "luminance": 0.06509
}

Semantic roles & 50–950 ramp

primary
#792178
secondary
#4AAC4B
accent
#E04947
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #792178

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

Preview Lab → · Contrast checker → · Palette generator →

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