#781F71#781F71

#781F71 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.6% C 0.155 H 331.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#781F71
RGBrgb(120, 31, 113)
HSLhsl(305, 59%, 30%)
HSVhsv(305, 74%, 47%)
CMYKcmyk(0%, 74.2%, 5.8%, 52.9%)
CIE-LABlab(29.83, 47.71, -27.01)
CIE-LCHlch(29.83, 54.83, 330.49°)
OKLaboklab(41.55% 0.1363 -0.0743)
OKLCHoklch(41.55% 0.155 331.4)
XYZxyz(11.2163, 6.1662, 16.2190)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F71 #1F7826
analogous
#531F78 #781F71 #781F45
triadic
#781F71 #71781F #1F7178
tetradic
#781F71 #78531F #1F7826 #1F4578
square
#781F71 #78531F #1F7826 #1F4578
split-complementary
#781F71 #45781F #1F7853
monochromatic
#180617 #471243 #781F71 #A92C9F #CE43C3

Accessibility & contrast

On white

9.40
#781F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#781F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F71
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F71#FFFFFF#000000##FFFFFF
##781F711.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#3B4B6F
Tritanopia (blue-blind)
#7D2946
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781f71;
/* rgb */ color: rgb(120, 31, 113);
/* oklch */ color: oklch(41.6% 0.155 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2649a',
    500: '#781f71',
    950: '#000000',
  },
}
SCSS
$custom: #781f71;
$custom-light: #a2649a;
$custom-dark: #000000;
JSON
{
  "hex": "#781f71",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 304.719,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41552,
    "c": 0.15525,
    "h": 331.4
  },
  "luminance": 0.06165
}

Semantic roles & 50–950 ramp

primary
#781F71
secondary
#47AB4F
accent
#E25246
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781F71

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

Preview Lab → · Contrast checker → · Palette generator →

#781F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva