#781F80#781F80

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

Color values

HEX#781F80
RGBrgb(120, 31, 128)
HSLhsl(295, 61%, 31%)
HSVhsv(295, 76%, 50%)
CMYKcmyk(6.3%, 75.8%, 0%, 49.8%)
CIE-LABlab(30.72, 50.38, -35.08)
CIE-LCHlch(30.72, 61.39, 325.15°)
OKLaboklab(42.48% 0.1363 -0.0978)
OKLCHoklch(42.48% 0.168 324.4)
XYZxyz(12.1317, 6.5323, 21.0398)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F80 #27801F
analogous
#471F80 #781F80 #801F57
triadic
#781F80 #80781F #1F8078
tetradic
#781F80 #80471F #27801F #1F5780
square
#781F80 #80471F #27801F #1F5780
split-complementary
#781F80 #57801F #1F8047
monochromatic
#1C071D #4A134F #781F80 #A62BB1 #C747D2

Accessibility & contrast

On white

9.11
#781F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F80
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F80#FFFFFF#000000##FFFFFF
##781F801.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004283
Deuteranopia (green-blind)
#324C7E
Tritanopia (blue-blind)
#7A304E
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f80;
/* rgb */ color: rgb(120, 31, 128);
/* oklch */ color: oklch(42.5% 0.168 324.4);
Tailwind
colors: {
  custom: {
    50: '#a265a5',
    500: '#781f80',
    950: '#000000',
  },
}
SCSS
$custom: #781f80;
$custom-light: #a265a5;
$custom-dark: #000000;
JSON
{
  "hex": "#781f80",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 295.052,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42476,
    "c": 0.16775,
    "h": 324.4
  },
  "luminance": 0.06532
}

Semantic roles & 50–950 ramp

primary
#781F80
secondary
#51B348
accent
#E44451
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F80

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

Preview Lab → · Contrast checker → · Palette generator →

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