#781B8C#781B8C

#781B8C is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.182 H 319.6°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#781B8C
RGBrgb(120, 27, 140)
HSLhsl(289, 68%, 33%)
HSVhsv(289, 81%, 55%)
CMYKcmyk(14.3%, 80.7%, 0%, 45.1%)
CIE-LABlab(31.05, 53.97, -42.03)
CIE-LCHlch(31.05, 68.41, 322.09°)
OKLaboklab(42.96% 0.1388 -0.1181)
OKLCHoklch(42.96% 0.182 319.6)
XYZxyz(12.8707, 6.6710, 25.4156)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B8C #2F8C1B
analogous
#401B8C #781B8C #8C1B67
triadic
#781B8C #8C781B #1B8C78
tetradic
#781B8C #8C401B #2F8C1B #1B678C
square
#781B8C #8C401B #2F8C1B #1B678C
split-complementary
#781B8C #678C1B #1B8C40
monochromatic
#200725 #4C1159 #781B8C #A425BF #C146DB

Accessibility & contrast

On white

9.00
#781B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B8C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B8C#FFFFFF#000000##FFFFFF
##781B8C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438F
Deuteranopia (green-blind)
#254C8A
Tritanopia (blue-blind)
#783454
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781b8c;
/* rgb */ color: rgb(120, 27, 140);
/* oklch */ color: oklch(43.0% 0.182 319.6);
Tailwind
colors: {
  custom: {
    50: '#a364ae',
    500: '#781b8c',
    950: '#000000',
  },
}
SCSS
$custom: #781b8c;
$custom-light: #a364ae;
$custom-dark: #000000;
JSON
{
  "hex": "#781b8c",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 289.381,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.42962,
    "c": 0.1822,
    "h": 319.6
  },
  "luminance": 0.0667
}

Semantic roles & 50–950 ramp

primary
#781B8C
secondary
#5BBD46
accent
#EB3D5C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #781B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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