#781F6B#781F6B

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

Color values

HEX#781F6B
RGBrgb(120, 31, 107)
HSLhsl(309, 59%, 30%)
HSVhsv(309, 74%, 47%)
CMYKcmyk(0%, 74.2%, 10.8%, 52.9%)
CIE-LABlab(29.50, 46.72, -23.68)
CIE-LCHlch(29.50, 52.37, 333.12°)
OKLaboklab(41.21% 0.1359 -0.0647)
OKLCHoklch(41.21% 0.151 334.5)
XYZxyz(10.8897, 6.0355, 14.4985)
Luminance0.0604 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F6B #1F782C
analogous
#591F78 #781F6B #781F3F
triadic
#781F6B #6B781F #1F6B78
tetradic
#781F6B #78591F #1F782C #1F3F78
square
#781F6B #78591F #1F782C #1F3F78
split-complementary
#781F6B #3F781F #1F7859
monochromatic
#180616 #471240 #781F6B #A92C96 #CE43BA

Accessibility & contrast

On white

9.52
#781F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#781F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F6B
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F6B#FFFFFF#000000##FFFFFF
##781F6B1.009.522.219.52
#FFFFFF9.521.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3D6D
Deuteranopia (green-blind)
#3D4A69
Tritanopia (blue-blind)
#7E2642
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781f6b;
/* rgb */ color: rgb(120, 31, 107);
/* oklch */ color: oklch(41.2% 0.150 334.5);
Tailwind
colors: {
  custom: {
    50: '#a26495',
    500: '#781f6b',
    950: '#000000',
  },
}
SCSS
$custom: #781f6b;
$custom-light: #a26495;
$custom-dark: #000000;
JSON
{
  "hex": "#781f6b",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 308.764,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41211,
    "c": 0.1505,
    "h": 334.5
  },
  "luminance": 0.06035
}

Semantic roles & 50–950 ramp

primary
#781F6B
secondary
#47AB56
accent
#E25D46
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #781F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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