#781E7F#781E7F

#781E7F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.3% C 0.168 H 324.8°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#781E7F
RGBrgb(120, 30, 127)
HSLhsl(296, 62%, 31%)
HSVhsv(296, 76%, 50%)
CMYKcmyk(5.5%, 76.4%, 0%, 50.2%)
CIE-LABlab(30.53, 50.55, -34.75)
CIE-LCHlch(30.53, 61.34, 325.49°)
OKLaboklab(42.32% 0.1373 -0.0968)
OKLCHoklch(42.32% 0.168 324.8)
XYZxyz(12.0405, 6.4547, 20.6863)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781E7F #257F1E
analogous
#471E7F #781E7F #7F1E55
triadic
#781E7F #7F781E #1E7F78
tetradic
#781E7F #7F471E #257F1E #1E557F
square
#781E7F #7F471E #257F1E #1E557F
split-complementary
#781E7F #557F1E #1E7F47
monochromatic
#1A071C #49124D #781E7F #A72AB1 #C944D3

Accessibility & contrast

On white

9.17
#781E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#781E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781E7F
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781E7F#FFFFFF#000000##FFFFFF
##781E7F1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#324C7D
Tritanopia (blue-blind)
#7B2F4D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781e7f;
/* rgb */ color: rgb(120, 30, 127);
/* oklch */ color: oklch(42.3% 0.168 324.8);
Tailwind
colors: {
  custom: {
    50: '#a264a4',
    500: '#781e7f',
    950: '#000000',
  },
}
SCSS
$custom: #781e7f;
$custom-light: #a264a4;
$custom-dark: #000000;
JSON
{
  "hex": "#781e7f",
  "rgb": {
    "r": 120,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 295.67,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42323,
    "c": 0.16802,
    "h": 324.8
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#781E7F
secondary
#4EB247
accent
#E5434F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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