#781F81#781F81

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

Color values

HEX#781F81
RGBrgb(120, 31, 129)
HSLhsl(294, 61%, 31%)
HSVhsv(294, 76%, 51%)
CMYKcmyk(7%, 76%, 0%, 49.4%)
CIE-LABlab(30.78, 50.56, -35.60)
CIE-LCHlch(30.78, 61.84, 324.85°)
OKLaboklab(42.54% 0.1363 -0.0993)
OKLCHoklch(42.54% 0.169 323.9)
XYZxyz(12.1978, 6.5588, 21.3881)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F81 #28811F
analogous
#471F81 #781F81 #811F59
triadic
#781F81 #81781F #1F8178
tetradic
#781F81 #81471F #28811F #1F5981
square
#781F81 #81471F #28811F #1F5981
split-complementary
#781F81 #59811F #1F8147
monochromatic
#1C071E #4A1350 #781F81 #A62BB2 #C647D3

Accessibility & contrast

On white

9.08
#781F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#781F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F81
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F81#FFFFFF#000000##FFFFFF
##781F811.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#314C7F
Tritanopia (blue-blind)
#7A314E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f81;
/* rgb */ color: rgb(120, 31, 129);
/* oklch */ color: oklch(42.5% 0.169 323.9);
Tailwind
colors: {
  custom: {
    50: '#a265a6',
    500: '#781f81',
    950: '#000000',
  },
}
SCSS
$custom: #781f81;
$custom-light: #a265a6;
$custom-dark: #000000;
JSON
{
  "hex": "#781f81",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 294.49,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42541,
    "c": 0.16861,
    "h": 323.9
  },
  "luminance": 0.06558
}

Semantic roles & 50–950 ramp

primary
#781F81
secondary
#52B448
accent
#E44352
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F81

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

Preview Lab → · Contrast checker → · Palette generator →

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