#781B82#781B82

#781B82 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.174 H 323.6°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#781B82
RGBrgb(120, 27, 130)
HSLhsl(294, 66%, 31%)
HSVhsv(294, 79%, 51%)
CMYKcmyk(7.7%, 79.2%, 0%, 49%)
CIE-LABlab(30.37, 52.10, -36.88)
CIE-LCHlch(30.37, 63.83, 324.71°)
OKLaboklab(42.27% 0.1399 -0.103)
OKLCHoklch(42.27% 0.174 323.6)
XYZxyz(12.1666, 6.3894, 21.7072)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B82 #25821B
analogous
#441B82 #781B82 #821B58
triadic
#781B82 #82781B #1B8278
tetradic
#781B82 #82441B #25821B #1B5882
square
#781B82 #82441B #25821B #1B5882
split-complementary
#781B82 #58821B #1B8244
monochromatic
#1A061D #49104F #781B82 #A726B5 #C940D7

Accessibility & contrast

On white

9.22
#781B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#781B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781B82
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B82#FFFFFF#000000##FFFFFF
##781B821.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004185
Deuteranopia (green-blind)
#2E4B80
Tritanopia (blue-blind)
#7A2F4E
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781b82;
/* rgb */ color: rgb(120, 27, 130);
/* oklch */ color: oklch(42.3% 0.174 323.6);
Tailwind
colors: {
  custom: {
    50: '#a263a7',
    500: '#781b82',
    950: '#000000',
  },
}
SCSS
$custom: #781b82;
$custom-light: #a263a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781b82",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 294.175,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42273,
    "c": 0.17372,
    "h": 323.6
  },
  "luminance": 0.06389
}

Semantic roles & 50–950 ramp

primary
#781B82
secondary
#4EB643
accent
#E93F50
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B82

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

Preview Lab → · Contrast checker → · Palette generator →

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