#782172#782172

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

Color values

HEX#782172
RGBrgb(120, 33, 114)
HSLhsl(304, 57%, 30%)
HSVhsv(304, 73%, 47%)
CMYKcmyk(0%, 72.5%, 5%, 52.9%)
CIE-LABlab(30.15, 47.13, -27.14)
CIE-LCHlch(30.15, 54.39, 330.07°)
OKLaboklab(41.8% 0.1342 -0.0747)
OKLCHoklch(41.8% 0.154 330.9)
XYZxyz(11.3268, 6.2966, 16.5351)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782172 #217827
analogous
#532178 #782172 #782146
triadic
#782172 #727821 #217278
tetradic
#782172 #785321 #217827 #214678
square
#782172 #785321 #217827 #214678
split-complementary
#782172 #467821 #217853
monochromatic
#180717 #481444 #782172 #A82EA0 #CC47C3

Accessibility & contrast

On white

9.30
#782172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782172
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782172#FFFFFF#000000##FFFFFF
##7821721.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3F74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#7D2B47
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #782172;
/* rgb */ color: rgb(120, 33, 114);
/* oklch */ color: oklch(41.8% 0.154 330.9);
Tailwind
colors: {
  custom: {
    50: '#a2659b',
    500: '#782172',
    950: '#000000',
  },
}
SCSS
$custom: #782172;
$custom-light: #a2659b;
$custom-dark: #000000;
JSON
{
  "hex": "#782172",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 304.138,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.41801,
    "c": 0.15358,
    "h": 330.9
  },
  "luminance": 0.06296
}

Semantic roles & 50–950 ramp

primary
#782172
secondary
#4AAB50
accent
#E05248
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782172

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

Preview Lab → · Contrast checker → · Palette generator →

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