#782173#782173

#782173 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.154 H 330.4°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#782173
RGBrgb(120, 33, 115)
HSLhsl(303, 57%, 30%)
HSVhsv(303, 73%, 47%)
CMYKcmyk(0%, 72.5%, 4.2%, 52.9%)
CIE-LABlab(30.20, 47.31, -27.68)
CIE-LCHlch(30.20, 54.81, 329.66°)
OKLaboklab(41.86% 0.1342 -0.0763)
OKLCHoklch(41.86% 0.154 330.4)
XYZxyz(11.3840, 6.3195, 16.8365)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782173 #217826
analogous
#512178 #782173 #782148
triadic
#782173 #737821 #217378
tetradic
#782173 #785121 #217826 #214878
square
#782173 #785121 #217826 #214878
split-complementary
#782173 #487821 #217851
monochromatic
#180717 #481445 #782173 #A82EA1 #CC47C5

Accessibility & contrast

On white

9.28
#782173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782173
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782173#FFFFFF#000000##FFFFFF
##7821731.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193F75
Deuteranopia (green-blind)
#3A4B71
Tritanopia (blue-blind)
#7D2C47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #782173;
/* rgb */ color: rgb(120, 33, 115);
/* oklch */ color: oklch(41.9% 0.154 330.4);
Tailwind
colors: {
  custom: {
    50: '#a2659b',
    500: '#782173',
    950: '#000000',
  },
}
SCSS
$custom: #782173;
$custom-light: #a2659b;
$custom-dark: #000000;
JSON
{
  "hex": "#782173",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 303.448,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.41859,
    "c": 0.15441,
    "h": 330.4
  },
  "luminance": 0.06319
}

Semantic roles & 50–950 ramp

primary
#782173
secondary
#4AAB4F
accent
#E05048
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782173

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

Preview Lab → · Contrast checker → · Palette generator →

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