#781BA6#781BA6

#781BA6 is a dark, highly saturated purple. Relative luminance 0.075; OKLCH L 44.9% C 0.205 H 310.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#781BA6
RGBrgb(120, 27, 166)
HSLhsl(280, 72%, 38%)
HSVhsv(280, 84%, 65%)
CMYKcmyk(27.7%, 83.7%, 0%, 34.9%)
CIE-LABlab(32.99, 59.17, -54.77)
CIE-LCHlch(32.99, 80.63, 317.21°)
OKLaboklab(44.93% 0.1334 -0.1555)
OKLCHoklch(44.93% 0.205 310.6)
XYZxyz(15.0192, 7.5305, 36.7313)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781BA6 #49A61B
analogous
#321BA6 #781BA6 #A61B8E
triadic
#781BA6 #A6781B #1BA678
tetradic
#781BA6 #A6321B #49A61B #1B8EA6
square
#781BA6 #A6321B #49A61B #1B8EA6
split-complementary
#781BA6 #8EA61B #1BA632
monochromatic
#2C0A3D #521271 #781BA6 #9E24DB #B558E4

Accessibility & contrast

On white

8.38
#781BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#781BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781BA6
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781BA6#FFFFFF#000000##FFFFFF
##781BA61.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#724063
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #781ba6;
/* rgb */ color: rgb(120, 27, 166);
/* oklch */ color: oklch(44.9% 0.205 310.6);
Tailwind
colors: {
  custom: {
    50: '#a465c1',
    500: '#781ba6',
    950: '#000000',
  },
}
SCSS
$custom: #781ba6;
$custom-light: #a465c1;
$custom-dark: #000000;
JSON
{
  "hex": "#781ba6",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 166
  },
  "hsl": {
    "h": 280.144,
    "s": 72.021,
    "l": 37.843
  },
  "oklch": {
    "l": 0.44931,
    "c": 0.20487,
    "h": 310.6
  },
  "luminance": 0.0753
}

Semantic roles & 50–950 ramp

primary
#781BA6
secondary
#7BC756
accent
#EF3975
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #781BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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