#781B7C#781B7C

#781B7C is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.169 H 326.2°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#781B7C
RGBrgb(120, 27, 124)
HSLhsl(298, 64%, 30%)
HSVhsv(298, 78%, 49%)
CMYKcmyk(3.2%, 78.2%, 0%, 51.4%)
CIE-LABlab(29.99, 51.01, -33.72)
CIE-LCHlch(29.99, 61.15, 326.54°)
OKLaboklab(41.88% 0.1403 -0.0938)
OKLCHoklch(41.88% 0.169 326.2)
XYZxyz(11.7755, 6.2330, 19.6477)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B7C #1F7C1B
analogous
#481B7C #781B7C #7C1B50
triadic
#781B7C #7C781B #1B7C78
tetradic
#781B7C #7C481B #1F7C1B #1B507C
square
#781B7C #7C481B #1F7C1B #1B507C
split-complementary
#781B7C #507C1B #1B7C48
monochromatic
#180519 #47104A #781B7C #A926AE #CE3DD5

Accessibility & contrast

On white

9.35
#781B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#781B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B7C
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B7C#FFFFFF#000000##FFFFFF
##781B7C1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#324B7A
Tritanopia (blue-blind)
#7B2C4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781b7c;
/* rgb */ color: rgb(120, 27, 124);
/* oklch */ color: oklch(41.9% 0.169 326.2);
Tailwind
colors: {
  custom: {
    50: '#a263a2',
    500: '#781b7c',
    950: '#000000',
  },
}
SCSS
$custom: #781b7c;
$custom-light: #a263a2;
$custom-dark: #000000;
JSON
{
  "hex": "#781b7c",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 297.526,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41879,
    "c": 0.16873,
    "h": 326.2
  },
  "luminance": 0.06232
}

Semantic roles & 50–950 ramp

primary
#781B7C
secondary
#47B043
accent
#E74147
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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