#781B6D#781B6D

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

Color values

HEX#781B6D
RGBrgb(120, 27, 109)
HSLhsl(307, 63%, 29%)
HSVhsv(307, 78%, 47%)
CMYKcmyk(0%, 77.5%, 9.2%, 52.9%)
CIE-LABlab(29.11, 48.46, -25.57)
CIE-LCHlch(29.11, 54.79, 332.18°)
OKLaboklab(40.97% 0.1402 -0.0701)
OKLCHoklch(40.97% 0.157 333.4)
XYZxyz(10.8981, 5.8820, 15.0264)
Luminance0.0588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B6D #1B7826
analogous
#551B78 #781B6D #781B3F
triadic
#781B6D #6D781B #1B6D78
tetradic
#781B6D #78551B #1B7826 #1B3F78
square
#781B6D #78551B #1B7826 #1B3F78
split-complementary
#781B6D #3F781B #1B7855
monochromatic
#190617 #461040 #781B6D #AA269A #D33BC1

Accessibility & contrast

On white

9.65
#781B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B6D
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B6D#FFFFFF#000000##FFFFFF
##781B6D1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173C6F
Deuteranopia (green-blind)
#3B496B
Tritanopia (blue-blind)
#7E2442
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781b6d;
/* rgb */ color: rgb(120, 27, 109);
/* oklch */ color: oklch(41.0% 0.157 333.4);
Tailwind
colors: {
  custom: {
    50: '#a26297',
    500: '#781b6d',
    950: '#000000',
  },
}
SCSS
$custom: #781b6d;
$custom-light: #a26297;
$custom-dark: #000000;
JSON
{
  "hex": "#781b6d",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 307.097,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.40966,
    "c": 0.15674,
    "h": 333.4
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#781B6D
secondary
#43AC4F
accent
#E65541
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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