#781E81#781E81

#781E81 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.170 H 324.0°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#781E81
RGBrgb(120, 30, 129)
HSLhsl(295, 62%, 31%)
HSVhsv(295, 77%, 51%)
CMYKcmyk(7%, 76.7%, 0%, 49.4%)
CIE-LABlab(30.66, 50.91, -35.80)
CIE-LCHlch(30.66, 62.24, 324.89°)
OKLaboklab(42.45% 0.1372 -0.0999)
OKLCHoklch(42.45% 0.17 324)
XYZxyz(12.1721, 6.5074, 21.3795)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E81 #27811E
analogous
#461E81 #781E81 #811E58
triadic
#781E81 #81781E #1E8178
tetradic
#781E81 #81461E #27811E #1E5881
square
#781E81 #81461E #27811E #1E5881
split-complementary
#781E81 #58811E #1E8146
monochromatic
#1C071E #4A124F #781E81 #A62AB3 #C746D4

Accessibility & contrast

On white

9.12
#781E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#781E81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E81
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E81#FFFFFF#000000##FFFFFF
##781E811.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004184
Deuteranopia (green-blind)
#304C7F
Tritanopia (blue-blind)
#7A304E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781e81;
/* rgb */ color: rgb(120, 30, 129);
/* oklch */ color: oklch(42.5% 0.170 324.0);
Tailwind
colors: {
  custom: {
    50: '#a264a6',
    500: '#781e81',
    950: '#000000',
  },
}
SCSS
$custom: #781e81;
$custom-light: #a264a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781e81",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 129
  },
  "hsl": {
    "h": 294.545,
    "s": 62.264,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42454,
    "c": 0.16972,
    "h": 324
  },
  "luminance": 0.06507
}

Semantic roles & 50–950 ramp

primary
#781E81
secondary
#51B447
accent
#E54251
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781E81

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

Preview Lab → · Contrast checker → · Palette generator →

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