#781B8A#781B8A

#781B8A is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.180 H 320.4°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#781B8A
RGBrgb(120, 27, 138)
HSLhsl(290, 67%, 32%)
HSVhsv(290, 80%, 54%)
CMYKcmyk(13%, 80.4%, 0%, 45.9%)
CIE-LABlab(30.91, 53.59, -41.01)
CIE-LCHlch(30.91, 67.48, 322.58°)
OKLaboklab(42.82% 0.139 -0.1151)
OKLCHoklch(42.82% 0.18 320.4)
XYZxyz(12.7246, 6.6126, 24.6459)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B8A #2D8A1B
analogous
#401B8A #781B8A #8A1B65
triadic
#781B8A #8A781B #1B8A78
tetradic
#781B8A #8A401B #2D8A1B #1B658A
square
#781B8A #8A401B #2D8A1B #1B658A
split-complementary
#781B8A #658A1B #1B8A40
monochromatic
#1F0724 #4B1157 #781B8A #A525BD #C245DB

Accessibility & contrast

On white

9.04
#781B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#781B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B8A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B8A#FFFFFF#000000##FFFFFF
##781B8A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#274C88
Tritanopia (blue-blind)
#793353
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781b8a;
/* rgb */ color: rgb(120, 27, 138);
/* oklch */ color: oklch(42.8% 0.180 320.4);
Tailwind
colors: {
  custom: {
    50: '#a364ad',
    500: '#781b8a',
    950: '#000000',
  },
}
SCSS
$custom: #781b8a;
$custom-light: #a364ad;
$custom-dark: #000000;
JSON
{
  "hex": "#781b8a",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 290.27,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.42821,
    "c": 0.18049,
    "h": 320.4
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#781B8A
secondary
#58BC45
accent
#EA3E5A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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