#781B71#781B71

#781B71 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.2% C 0.160 H 331.4°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#781B71
RGBrgb(120, 27, 113)
HSLhsl(305, 63%, 29%)
HSVhsv(305, 78%, 47%)
CMYKcmyk(0%, 77.5%, 5.8%, 52.9%)
CIE-LABlab(29.34, 49.11, -27.78)
CIE-LCHlch(29.34, 56.43, 330.51°)
OKLaboklab(41.2% 0.1404 -0.0765)
OKLCHoklch(41.2% 0.16 331.4)
XYZxyz(11.1183, 5.9701, 16.1863)
Luminance0.0597 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B71 #1B7822
analogous
#511B78 #781B71 #781B43
triadic
#781B71 #71781B #1B7178
tetradic
#781B71 #78511B #1B7822 #1B4378
square
#781B71 #78511B #1B7822 #1B4378
split-complementary
#781B71 #43781B #1B7851
monochromatic
#190618 #461042 #781B71 #AA26A0 #D33BC7

Accessibility & contrast

On white

9.57
#781B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#781B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B71
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B71#FFFFFF#000000##FFFFFF
##781B711.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#394A6F
Tritanopia (blue-blind)
#7D2744
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781b71;
/* rgb */ color: rgb(120, 27, 113);
/* oklch */ color: oklch(41.2% 0.160 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2639a',
    500: '#781b71',
    950: '#000000',
  },
}
SCSS
$custom: #781b71;
$custom-light: #a2639a;
$custom-dark: #000000;
JSON
{
  "hex": "#781b71",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 304.516,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41199,
    "c": 0.15986,
    "h": 331.4
  },
  "luminance": 0.05969
}

Semantic roles & 50–950 ramp

primary
#781B71
secondary
#43AC4A
accent
#E64E41
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781B71

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

Preview Lab → · Contrast checker → · Palette generator →

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