#783173#783173

#783173 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 43.7% C 0.131 H 330.3°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#783173
RGBrgb(120, 49, 115)
HSLhsl(304, 42%, 33%)
HSVhsv(304, 59%, 47%)
CMYKcmyk(0%, 59.2%, 4.2%, 52.9%)
CIE-LABlab(32.76, 40.22, -23.67)
CIE-LCHlch(32.76, 46.67, 329.53°)
OKLaboklab(43.72% 0.1139 -0.0649)
OKLCHoklch(43.72% 0.131 330.3)
XYZxyz(11.9385, 7.4283, 17.0213)
Luminance0.0743 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783173 #317836
analogous
#593178 #783173 #78314F
triadic
#783173 #737831 #317378
tetradic
#783173 #785931 #317836 #314F78
square
#783173 #785931 #317836 #314F78
split-complementary
#783173 #4F7831 #317859
monochromatic
#210E20 #4D1F49 #783173 #A3439D #C064B9

Accessibility & contrast

On white

8.45
#783173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#783173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783173
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783173#FFFFFF#000000##FFFFFF
##7831731.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4775
Deuteranopia (green-blind)
#435171
Tritanopia (blue-blind)
#7C384D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #783173;
/* rgb */ color: rgb(120, 49, 115);
/* oklch */ color: oklch(43.7% 0.131 330.3);
Tailwind
colors: {
  custom: {
    50: '#a16d9b',
    500: '#783173',
    950: '#000000',
  },
}
SCSS
$custom: #783173;
$custom-light: #a16d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#783173",
  "rgb": {
    "r": 120,
    "g": 49,
    "b": 115
  },
  "hsl": {
    "h": 304.225,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43718,
    "c": 0.13107,
    "h": 330.3
  },
  "luminance": 0.07427
}

Semantic roles & 50–950 ramp

primary
#783173
secondary
#5EA763
accent
#D25F56
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #783173

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

Preview Lab → · Contrast checker → · Palette generator →

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