#781781#781781

#781781 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.177 H 324.2°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#781781
RGBrgb(120, 23, 129)
HSLhsl(295, 70%, 30%)
HSVhsv(295, 82%, 51%)
CMYKcmyk(7%, 82.2%, 0%, 49.4%)
CIE-LABlab(29.89, 53.13, -37.03)
CIE-LCHlch(29.89, 64.76, 325.12°)
OKLaboklab(41.91% 0.1433 -0.1034)
OKLCHoklch(41.91% 0.177 324.2)
XYZxyz(12.0142, 6.1916, 21.3269)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781781 #208117
analogous
#431781 #781781 #811755
triadic
#781781 #817817 #178178
tetradic
#781781 #814317 #208117 #175581
square
#781781 #814317 #208117 #175581
split-complementary
#781781 #558117 #178143
monochromatic
#18051A #480E4D #781781 #A820B5 #CD37DB

Accessibility & contrast

On white

9.38
#781781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#781781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781781
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781781#FFFFFF#000000##FFFFFF
##7817811.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F84
Deuteranopia (green-blind)
#2D4A7F
Tritanopia (blue-blind)
#7A2C4D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #781781;
/* rgb */ color: rgb(120, 23, 129);
/* oklch */ color: oklch(41.9% 0.177 324.2);
Tailwind
colors: {
  custom: {
    50: '#a362a6',
    500: '#781781',
    950: '#000000',
  },
}
SCSS
$custom: #781781;
$custom-light: #a362a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781781",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 294.906,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41909,
    "c": 0.1767,
    "h": 324.2
  },
  "luminance": 0.06191
}

Semantic roles & 50–950 ramp

primary
#781781
secondary
#48B53E
accent
#ED3B4A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #781781

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

Preview Lab → · Contrast checker → · Palette generator →

#781781 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva