#781B6E#781B6E

#781B6E is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.158 H 332.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#781B6E
RGBrgb(120, 27, 110)
HSLhsl(306, 63%, 29%)
HSVhsv(306, 78%, 47%)
CMYKcmyk(0%, 77.5%, 8.3%, 52.9%)
CIE-LABlab(29.17, 48.62, -26.13)
CIE-LCHlch(29.17, 55.19, 331.75°)
OKLaboklab(41.02% 0.1402 -0.0717)
OKLCHoklch(41.02% 0.158 332.9)
XYZxyz(10.9522, 5.9037, 15.3115)
Luminance0.0590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B6E #1B7825
analogous
#541B78 #781B6E #781B40
triadic
#781B6E #6E781B #1B6E78
tetradic
#781B6E #78541B #1B7825 #1B4078
square
#781B6E #78541B #1B7825 #1B4078
split-complementary
#781B6E #40781B #1B7854
monochromatic
#190617 #461040 #781B6E #AA269C #D33BC2

Accessibility & contrast

On white

9.63
#781B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#781B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B6E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B6E#FFFFFF#000000##FFFFFF
##781B6E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C70
Deuteranopia (green-blind)
#3A496C
Tritanopia (blue-blind)
#7E2543
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781b6e;
/* rgb */ color: rgb(120, 27, 110);
/* oklch */ color: oklch(41.0% 0.158 332.9);
Tailwind
colors: {
  custom: {
    50: '#a26298',
    500: '#781b6e',
    950: '#000000',
  },
}
SCSS
$custom: #781b6e;
$custom-light: #a26298;
$custom-dark: #000000;
JSON
{
  "hex": "#781b6e",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 306.452,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41023,
    "c": 0.15752,
    "h": 332.9
  },
  "luminance": 0.05903
}

Semantic roles & 50–950 ramp

primary
#781B6E
secondary
#43AC4E
accent
#E65341
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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