#781F7C#781F7C

#781F7C is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.164 H 326.1°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#781F7C
RGBrgb(120, 31, 124)
HSLhsl(297, 60%, 30%)
HSVhsv(297, 75%, 49%)
CMYKcmyk(3.2%, 75%, 0%, 51.4%)
CIE-LABlab(30.47, 49.65, -32.96)
CIE-LCHlch(30.47, 59.59, 326.42°)
OKLaboklab(42.22% 0.1365 -0.0916)
OKLCHoklch(42.22% 0.164 326.1)
XYZxyz(11.8736, 6.4291, 19.6804)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F7C #237C1F
analogous
#491F7C #781F7C #7C1F52
triadic
#781F7C #7C781F #1F7C78
tetradic
#781F7C #7C491F #237C1F #1F527C
square
#781F7C #7C491F #237C1F #1F527C
split-complementary
#781F7C #527C1F #1F7C49
monochromatic
#19071A #49134B #781F7C #A72BAD #CA45D0

Accessibility & contrast

On white

9.19
#781F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781F7C
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F7C#FFFFFF#000000##FFFFFF
##781F7C1.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06417F
Deuteranopia (green-blind)
#344C7A
Tritanopia (blue-blind)
#7B2E4C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f7c;
/* rgb */ color: rgb(120, 31, 124);
/* oklch */ color: oklch(42.2% 0.164 326.1);
Tailwind
colors: {
  custom: {
    50: '#a265a2',
    500: '#781f7c',
    950: '#000000',
  },
}
SCSS
$custom: #781f7c;
$custom-light: #a265a2;
$custom-dark: #000000;
JSON
{
  "hex": "#781f7c",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 297.419,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4222,
    "c": 0.16434,
    "h": 326.1
  },
  "luminance": 0.06428
}

Semantic roles & 50–950 ramp

primary
#781F7C
secondary
#4CAF48
accent
#E3454B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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