#781B80#781B80

#781B80 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.172 H 324.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#781B80
RGBrgb(120, 27, 128)
HSLhsl(295, 65%, 30%)
HSVhsv(295, 79%, 50%)
CMYKcmyk(6.3%, 78.9%, 0%, 49.8%)
CIE-LABlab(30.25, 51.73, -35.83)
CIE-LCHlch(30.25, 62.93, 325.29°)
OKLaboklab(42.14% 0.1401 -0.0999)
OKLCHoklch(42.14% 0.172 324.5)
XYZxyz(12.0336, 6.3362, 21.0071)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B80 #23801B
analogous
#461B80 #781B80 #801B55
triadic
#781B80 #80781B #1B8078
tetradic
#781B80 #80461B #23801B #1B5580
square
#781B80 #80461B #23801B #1B5580
split-complementary
#781B80 #55801B #1B8046
monochromatic
#19061B #49104D #781B80 #A726B3 #CA3FD6

Accessibility & contrast

On white

9.26
#781B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B80
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B80#FFFFFF#000000##FFFFFF
##781B801.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#304B7E
Tritanopia (blue-blind)
#7B2E4D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781b80;
/* rgb */ color: rgb(120, 27, 128);
/* oklch */ color: oklch(42.1% 0.172 324.5);
Tailwind
colors: {
  custom: {
    50: '#a263a5',
    500: '#781b80',
    950: '#000000',
  },
}
SCSS
$custom: #781b80;
$custom-light: #a263a5;
$custom-dark: #000000;
JSON
{
  "hex": "#781b80",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 295.248,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4214,
    "c": 0.17205,
    "h": 324.5
  },
  "luminance": 0.06335
}

Semantic roles & 50–950 ramp

primary
#781B80
secondary
#4CB443
accent
#E8404D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B80

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

Preview Lab → · Contrast checker → · Palette generator →

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