#781B7E#781B7E

#781B7E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.170 H 325.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#781B7E
RGBrgb(120, 27, 126)
HSLhsl(296, 65%, 30%)
HSVhsv(296, 79%, 49%)
CMYKcmyk(4.8%, 78.6%, 0%, 50.6%)
CIE-LABlab(30.12, 51.37, -34.78)
CIE-LCHlch(30.12, 62.04, 325.90°)
OKLaboklab(42.01% 0.1402 -0.0969)
OKLCHoklch(42.01% 0.17 325.4)
XYZxyz(11.9033, 6.2841, 20.3206)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B7E #217E1B
analogous
#471B7E #781B7E #7E1B52
triadic
#781B7E #7E781B #1B7E78
tetradic
#781B7E #7E471B #217E1B #1B527E
square
#781B7E #7E471B #217E1B #1B527E
split-complementary
#781B7E #527E1B #1B7E47
monochromatic
#180519 #48104C #781B7E #A826B0 #CC3ED6

Accessibility & contrast

On white

9.31
#781B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#781B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B7E
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B7E#FFFFFF#000000##FFFFFF
##781B7E1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#314B7C
Tritanopia (blue-blind)
#7B2D4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781b7e;
/* rgb */ color: rgb(120, 27, 126);
/* oklch */ color: oklch(42.0% 0.170 325.4);
Tailwind
colors: {
  custom: {
    50: '#a263a4',
    500: '#781b7e',
    950: '#000000',
  },
}
SCSS
$custom: #781b7e;
$custom-light: #a263a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781b7e",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 296.364,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.42009,
    "c": 0.17038,
    "h": 325.4
  },
  "luminance": 0.06283
}

Semantic roles & 50–950 ramp

primary
#781B7E
secondary
#4AB243
accent
#E8404A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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