#781B95#781B95

#781B95 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.6% C 0.190 H 316.3°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#781B95
RGBrgb(120, 27, 149)
HSLhsl(286, 69%, 35%)
HSVhsv(286, 82%, 58%)
CMYKcmyk(19.5%, 81.9%, 0%, 41.6%)
CIE-LABlab(31.69, 55.73, -46.54)
CIE-LCHlch(31.69, 72.61, 320.13°)
OKLaboklab(43.62% 0.1373 -0.1313)
OKLCHoklch(43.62% 0.19 316.3)
XYZxyz(13.5616, 6.9474, 29.0546)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B95 #38951B
analogous
#3B1B95 #781B95 #951B75
triadic
#781B95 #95781B #1B9578
tetradic
#781B95 #953B1B #38951B #1B7595
square
#781B95 #953B1B #38951B #1B7595
split-complementary
#781B95 #75951B #1B953B
monochromatic
#25082D #4E1261 #781B95 #A224C9 #BC4CDF

Accessibility & contrast

On white

8.79
#781B95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#781B95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B95
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B95#FFFFFF#000000##FFFFFF
##781B951.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#194D92
Tritanopia (blue-blind)
#763859
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781b95;
/* rgb */ color: rgb(120, 27, 149);
/* oklch */ color: oklch(43.6% 0.190 316.3);
Tailwind
colors: {
  custom: {
    50: '#a364b5',
    500: '#781b95',
    950: '#000000',
  },
}
SCSS
$custom: #781b95;
$custom-light: #a364b5;
$custom-dark: #000000;
JSON
{
  "hex": "#781b95",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 149
  },
  "hsl": {
    "h": 285.738,
    "s": 69.318,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43616,
    "c": 0.18996,
    "h": 316.3
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

primary
#781B95
secondary
#67C14B
accent
#EC3C66
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781B95

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

Preview Lab → · Contrast checker → · Palette generator →

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