#781F7D#781F7D

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

Color values

HEX#781F7D
RGBrgb(120, 31, 125)
HSLhsl(297, 60%, 31%)
HSVhsv(297, 75%, 49%)
CMYKcmyk(4%, 75.2%, 0%, 51%)
CIE-LABlab(30.53, 49.83, -33.49)
CIE-LCHlch(30.53, 60.04, 326.09°)
OKLaboklab(42.28% 0.1364 -0.0931)
OKLCHoklch(42.28% 0.165 325.7)
XYZxyz(11.9371, 6.4545, 20.0152)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F7D #247D1F
analogous
#491F7D #781F7D #7D1F53
triadic
#781F7D #7D781F #1F7D78
tetradic
#781F7D #7D491F #247D1F #1F537D
square
#781F7D #7D491F #247D1F #1F537D
split-complementary
#781F7D #537D1F #1F7D49
monochromatic
#1A071B #49134C #781F7D #A72BAE #CA45D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##781F7D#FFFFFF#000000##FFFFFF
##781F7D1.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)
#034180
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7B2F4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f7d;
/* rgb */ color: rgb(120, 31, 125);
/* oklch */ color: oklch(42.3% 0.165 325.7);
Tailwind
colors: {
  custom: {
    50: '#a265a3',
    500: '#781f7d',
    950: '#000000',
  },
}
SCSS
$custom: #781f7d;
$custom-light: #a265a3;
$custom-dark: #000000;
JSON
{
  "hex": "#781f7d",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 296.809,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42283,
    "c": 0.16519,
    "h": 325.7
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#781F7D
secondary
#4DB048
accent
#E3444D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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