#782174#782174

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

Color values

HEX#782174
RGBrgb(120, 33, 116)
HSLhsl(303, 57%, 30%)
HSVhsv(303, 73%, 47%)
CMYKcmyk(0%, 72.5%, 3.3%, 52.9%)
CIE-LABlab(30.26, 47.48, -28.23)
CIE-LCHlch(30.26, 55.24, 329.27°)
OKLaboklab(41.92% 0.1343 -0.0779)
OKLCHoklch(41.92% 0.155 329.9)
XYZxyz(11.4419, 6.3426, 17.1412)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782174 #217825
analogous
#512178 #782174 #782148
triadic
#782174 #747821 #217478
tetradic
#782174 #785121 #217825 #214878
square
#782174 #785121 #217825 #214878
split-complementary
#782174 #487821 #217851
monochromatic
#180717 #481446 #782174 #A82EA2 #CC47C6

Accessibility & contrast

On white

9.26
#782174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#782174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782174
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782174#FFFFFF#000000##FFFFFF
##7821741.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174076
Deuteranopia (green-blind)
#3A4B72
Tritanopia (blue-blind)
#7D2C48
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #782174;
/* rgb */ color: rgb(120, 33, 116);
/* oklch */ color: oklch(41.9% 0.155 329.9);
Tailwind
colors: {
  custom: {
    50: '#a2659c',
    500: '#782174',
    950: '#000000',
  },
}
SCSS
$custom: #782174;
$custom-light: #a2659c;
$custom-dark: #000000;
JSON
{
  "hex": "#782174",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 302.759,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.41918,
    "c": 0.15523,
    "h": 329.9
  },
  "luminance": 0.06342
}

Semantic roles & 50–950 ramp

primary
#782174
secondary
#4AAB4E
accent
#E04F48
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #782174

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

Preview Lab → · Contrast checker → · Palette generator →

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