#781F82#781F82

#781F82 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.6% C 0.169 H 323.5°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#781F82
RGBrgb(120, 31, 130)
HSLhsl(294, 61%, 32%)
HSVhsv(294, 76%, 51%)
CMYKcmyk(7.7%, 76.2%, 0%, 49%)
CIE-LABlab(30.84, 50.75, -36.13)
CIE-LCHlch(30.84, 62.30, 324.55°)
OKLaboklab(42.61% 0.1362 -0.1008)
OKLCHoklch(42.61% 0.169 323.5)
XYZxyz(12.2646, 6.5855, 21.7399)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F82 #29821F
analogous
#471F82 #781F82 #821F5B
triadic
#781F82 #82781F #1F8278
tetradic
#781F82 #82471F #29821F #1F5B82
square
#781F82 #82471F #29821F #1F5B82
split-complementary
#781F82 #5B821F #1F8247
monochromatic
#1D071F #4A1351 #781F82 #A62BB3 #C548D3

Accessibility & contrast

On white

9.06
#781F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#781F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F82
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F82#FFFFFF#000000##FFFFFF
##781F821.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#304C80
Tritanopia (blue-blind)
#7A314F
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781f82;
/* rgb */ color: rgb(120, 31, 130);
/* oklch */ color: oklch(42.6% 0.169 323.5);
Tailwind
colors: {
  custom: {
    50: '#a265a7',
    500: '#781f82',
    950: '#000000',
  },
}
SCSS
$custom: #781f82;
$custom-light: #a265a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781f82",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 293.939,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.42607,
    "c": 0.16947,
    "h": 323.5
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#781F82
secondary
#53B548
accent
#E54354
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F82

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

Preview Lab → · Contrast checker → · Palette generator →

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