#781B7B#781B7B

#781B7B is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.168 H 326.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#781B7B
RGBrgb(120, 27, 123)
HSLhsl(298, 64%, 29%)
HSVhsv(298, 78%, 48%)
CMYKcmyk(2.4%, 78%, 0%, 51.8%)
CIE-LABlab(29.93, 50.84, -33.19)
CIE-LCHlch(29.93, 60.71, 326.86°)
OKLaboklab(41.82% 0.1403 -0.0922)
OKLCHoklch(41.82% 0.168 326.7)
XYZxyz(11.7126, 6.2078, 19.3164)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B7B #1E7B1B
analogous
#481B7B #781B7B #7B1B4E
triadic
#781B7B #7B781B #1B7B78
tetradic
#781B7B #7B481B #1E7B1B #1B4E7B
square
#781B7B #7B481B #1E7B1B #1B4E7B
split-complementary
#781B7B #4E7B1B #1B7B48
monochromatic
#180619 #471049 #781B7B #A926AD #CF3CD4

Accessibility & contrast

On white

9.37
#781B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#781B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B7B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B7B#FFFFFF#000000##FFFFFF
##781B7B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#334A79
Tritanopia (blue-blind)
#7B2C4A
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781b7b;
/* rgb */ color: rgb(120, 27, 123);
/* oklch */ color: oklch(41.8% 0.168 326.7);
Tailwind
colors: {
  custom: {
    50: '#a263a1',
    500: '#781b7b',
    950: '#000000',
  },
}
SCSS
$custom: #781b7b;
$custom-light: #a263a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781b7b",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 298.125,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41815,
    "c": 0.16791,
    "h": 326.7
  },
  "luminance": 0.06207
}

Semantic roles & 50–950 ramp

primary
#781B7B
secondary
#46AF43
accent
#E74146
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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