#781F7B#781F7B

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

Color values

HEX#781F7B
RGBrgb(120, 31, 123)
HSLhsl(298, 60%, 30%)
HSVhsv(298, 75%, 48%)
CMYKcmyk(2.4%, 74.8%, 0%, 51.8%)
CIE-LABlab(30.41, 49.47, -32.43)
CIE-LCHlch(30.41, 59.15, 326.75°)
OKLaboklab(42.16% 0.1365 -0.09)
OKLCHoklch(42.16% 0.164 326.6)
XYZxyz(11.8107, 6.4039, 19.3491)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F7B #227B1F
analogous
#4A1F7B #781F7B #7B1F50
triadic
#781F7B #7B781F #1F7B78
tetradic
#781F7B #7B4A1F #227B1F #1F507B
square
#781F7B #7B4A1F #227B1F #1F507B
split-complementary
#781F7B #507B1F #1F7B4A
monochromatic
#190619 #48134A #781F7B #A82BAC #CB44D0

Accessibility & contrast

On white

9.21
#781F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#781F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F7B
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F7B#FFFFFF#000000##FFFFFF
##781F7B1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08407E
Deuteranopia (green-blind)
#354B79
Tritanopia (blue-blind)
#7B2E4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781f7b;
/* rgb */ color: rgb(120, 31, 123);
/* oklch */ color: oklch(42.2% 0.164 326.6);
Tailwind
colors: {
  custom: {
    50: '#a265a1',
    500: '#781f7b',
    950: '#000000',
  },
}
SCSS
$custom: #781f7b;
$custom-light: #a265a1;
$custom-dark: #000000;
JSON
{
  "hex": "#781f7b",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 298.043,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42157,
    "c": 0.1635,
    "h": 326.6
  },
  "luminance": 0.06403
}

Semantic roles & 50–950 ramp

primary
#781F7B
secondary
#4BAE48
accent
#E3454A
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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