#781B8F#781B8F

#781B8F is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.185 H 318.5°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#781B8F
RGBrgb(120, 27, 143)
HSLhsl(288, 68%, 33%)
HSVhsv(288, 81%, 56%)
CMYKcmyk(16.1%, 81.1%, 0%, 43.9%)
CIE-LABlab(31.26, 54.55, -43.55)
CIE-LCHlch(31.26, 69.80, 321.40°)
OKLaboklab(43.18% 0.1383 -0.1225)
OKLCHoklch(43.18% 0.185 318.5)
XYZxyz(13.0949, 6.7607, 26.5965)
Luminance0.0676 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B8F #328F1B
analogous
#3E1B8F #781B8F #8F1B6C
triadic
#781B8F #8F781B #1B8F78
tetradic
#781B8F #8F3E1B #328F1B #1B6C8F
square
#781B8F #8F3E1B #328F1B #1B6C8F
split-complementary
#781B8F #6C8F1B #1B8F3E
monochromatic
#220828 #4D115C #781B8F #A325C2 #BF48DC

Accessibility & contrast

On white

8.93
#781B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#781B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B8F
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B8F#FFFFFF#000000##FFFFFF
##781B8F1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#224C8D
Tritanopia (blue-blind)
#773555
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #781b8f;
/* rgb */ color: rgb(120, 27, 143);
/* oklch */ color: oklch(43.2% 0.185 318.5);
Tailwind
colors: {
  custom: {
    50: '#a364b0',
    500: '#781b8f',
    950: '#000000',
  },
}
SCSS
$custom: #781b8f;
$custom-light: #a364b0;
$custom-dark: #000000;
JSON
{
  "hex": "#781b8f",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 288.103,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43177,
    "c": 0.18477,
    "h": 318.5
  },
  "luminance": 0.0676
}

Semantic roles & 50–950 ramp

primary
#781B8F
secondary
#5FBE48
accent
#EB3D5F
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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