#781F79#781F79

#781F79 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.0% C 0.162 H 327.5°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#781F79
RGBrgb(120, 31, 121)
HSLhsl(299, 59%, 30%)
HSVhsv(299, 74%, 47%)
CMYKcmyk(0.8%, 74.4%, 0%, 52.5%)
CIE-LABlab(30.29, 49.11, -31.35)
CIE-LCHlch(30.29, 58.26, 327.44°)
OKLaboklab(42.03% 0.1365 -0.0869)
OKLCHoklch(42.03% 0.162 327.5)
XYZxyz(11.6867, 6.3543, 18.6964)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F79 #20791F
analogous
#4B1F79 #781F79 #791F4D
triadic
#781F79 #79781F #1F7978
tetradic
#781F79 #794B1F #20791F #1F4D79
square
#781F79 #794B1F #20791F #1F4D79
split-complementary
#781F79 #4D791F #1F794B
monochromatic
#180618 #481348 #781F79 #A82BAA #CD43CF

Accessibility & contrast

On white

9.25
#781F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#781F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F79
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F79#FFFFFF#000000##FFFFFF
##781F791.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D407B
Deuteranopia (green-blind)
#364B77
Tritanopia (blue-blind)
#7C2D4A
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #781f79;
/* rgb */ color: rgb(120, 31, 121);
/* oklch */ color: oklch(42.0% 0.162 327.5);
Tailwind
colors: {
  custom: {
    50: '#a265a0',
    500: '#781f79',
    950: '#000000',
  },
}
SCSS
$custom: #781f79;
$custom-light: #a265a0;
$custom-dark: #000000;
JSON
{
  "hex": "#781f79",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 299.333,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42032,
    "c": 0.16183,
    "h": 327.5
  },
  "luminance": 0.06354
}

Semantic roles & 50–950 ramp

primary
#781F79
secondary
#48AC47
accent
#E24547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060F
muted
#7F7A7E

Preview Lab

Preview with #781F79

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

Preview Lab → · Contrast checker → · Palette generator →

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