#781B9A#781B9A

#781B9A is a dark, vivid purple. Relative luminance 0.071; OKLCH L 44.0% C 0.194 H 314.5°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#781B9A
RGBrgb(120, 27, 154)
HSLhsl(284, 70%, 35%)
HSVhsv(284, 82%, 60%)
CMYKcmyk(22.1%, 82.5%, 0%, 39.6%)
CIE-LABlab(32.06, 56.72, -49.00)
CIE-LCHlch(32.06, 74.96, 319.18°)
OKLaboklab(43.99% 0.1363 -0.1385)
OKLCHoklch(43.99% 0.194 314.5)
XYZxyz(13.9694, 7.1105, 31.2022)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B9A #3D9A1B
analogous
#381B9A #781B9A #9A1B7C
triadic
#781B9A #9A781B #1B9A78
tetradic
#781B9A #9A381B #3D9A1B #1B7C9A
square
#781B9A #9A381B #3D9A1B #1B7C9A
split-complementary
#781B9A #7C9A1B #1B9A38
monochromatic
#270932 #4F1266 #781B9A #A124CE #B94FE0

Accessibility & contrast

On white

8.67
#781B9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#781B9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B9A
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B9A#FFFFFF#000000##FFFFFF
##781B9A1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479D
Deuteranopia (green-blind)
#0F4E97
Tritanopia (blue-blind)
#753B5C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781b9a;
/* rgb */ color: rgb(120, 27, 154);
/* oklch */ color: oklch(44.0% 0.194 314.5);
Tailwind
colors: {
  custom: {
    50: '#a365b9',
    500: '#781b9a',
    950: '#000000',
  },
}
SCSS
$custom: #781b9a;
$custom-light: #a365b9;
$custom-dark: #000000;
JSON
{
  "hex": "#781b9a",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 154
  },
  "hsl": {
    "h": 283.937,
    "s": 70.166,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43993,
    "c": 0.19433,
    "h": 314.5
  },
  "luminance": 0.0711
}

Semantic roles & 50–950 ramp

primary
#781B9A
secondary
#6DC34E
accent
#ED3B6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781B9A

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

Preview Lab → · Contrast checker → · Palette generator →

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