#781871#781871

#781871 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 41.0% C 0.163 H 331.4°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#781871
RGBrgb(120, 24, 113)
HSLhsl(304, 67%, 28%)
HSVhsv(304, 80%, 47%)
CMYKcmyk(0%, 80%, 5.8%, 52.9%)
CIE-LABlab(29.00, 50.07, -28.31)
CIE-LCHlch(29.00, 57.52, 330.52°)
OKLaboklab(40.96% 0.1431 -0.078)
OKLCHoklch(40.96% 0.163 331.4)
XYZxyz(11.0530, 5.8395, 16.1646)
Luminance0.0584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781871 #18781F
analogous
#4F1878 #781871 #781841
triadic
#781871 #717818 #187178
tetradic
#781871 #784F18 #18781F #184178
square
#781871 #784F18 #18781F #184178
split-complementary
#781871 #417818 #18784F
monochromatic
#1A0518 #450E41 #781871 #AB22A1 #D634CB

Accessibility & contrast

On white

9.69
#781871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#781871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781871
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781871#FFFFFF#000000##FFFFFF
##7818711.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3C73
Deuteranopia (green-blind)
#38496F
Tritanopia (blue-blind)
#7D2544
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781871;
/* rgb */ color: rgb(120, 24, 113);
/* oklch */ color: oklch(41.0% 0.163 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2619a',
    500: '#781871',
    950: '#000000',
  },
}
SCSS
$custom: #781871;
$custom-light: #a2619a;
$custom-dark: #000000;
JSON
{
  "hex": "#781871",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 304.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.40961,
    "c": 0.16301,
    "h": 331.4
  },
  "luminance": 0.05839
}

Semantic roles & 50–950 ramp

primary
#781871
secondary
#3FAD47
accent
#EA4B3E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781871

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

Preview Lab → · Contrast checker → · Palette generator →

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