#783271#783271

#783271 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 43.7% C 0.128 H 331.5°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#783271
RGBrgb(120, 50, 113)
HSLhsl(306, 41%, 33%)
HSVhsv(306, 58%, 47%)
CMYKcmyk(0%, 58.3%, 5.8%, 52.9%)
CIE-LABlab(32.85, 39.35, -22.27)
CIE-LCHlch(32.85, 45.22, 330.49°)
OKLaboklab(43.75% 0.1122 -0.0609)
OKLCHoklch(43.75% 0.128 331.5)
XYZxyz(11.8669, 7.4673, 16.4359)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783271 #327839
analogous
#5C3278 #783271 #78324E
triadic
#783271 #717832 #327178
tetradic
#783271 #785C32 #327839 #324E78
square
#783271 #785C32 #327839 #324E78
split-complementary
#783271 #4E7832 #32785C
monochromatic
#220E20 #4D2048 #783271 #A3449A #BF65B6

Accessibility & contrast

On white

8.42
#783271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #783271
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783271#FFFFFF#000000##FFFFFF
##7832711.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F4773
Deuteranopia (green-blind)
#45516F
Tritanopia (blue-blind)
#7D384C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #783271;
/* rgb */ color: rgb(120, 50, 113);
/* oklch */ color: oklch(43.7% 0.128 331.5);
Tailwind
colors: {
  custom: {
    50: '#a16e9a',
    500: '#783271',
    950: '#000000',
  },
}
SCSS
$custom: #783271;
$custom-light: #a16e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#783271",
  "rgb": {
    "r": 120,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 306,
    "s": 41.176,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43748,
    "c": 0.1276,
    "h": 331.5
  },
  "luminance": 0.07467
}

Semantic roles & 50–950 ramp

primary
#783271
secondary
#5FA766
accent
#D16357
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #783271

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

Preview Lab → · Contrast checker → · Palette generator →

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