#781F90#781F90

#781F90 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.182 H 317.9°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#781F90
RGBrgb(120, 31, 144)
HSLhsl(287, 65%, 34%)
HSVhsv(287, 78%, 56%)
CMYKcmyk(16.7%, 78.5%, 0%, 43.5%)
CIE-LABlab(31.78, 53.44, -43.32)
CIE-LCHlch(31.78, 68.79, 320.97°)
OKLaboklab(43.57% 0.1348 -0.1219)
OKLCHoklch(43.57% 0.182 317.9)
XYZxyz(13.2690, 6.9873, 27.0299)
Luminance0.0699 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F90 #37901F
analogous
#401F90 #781F90 #901F70
triadic
#781F90 #90781F #1F9078
tetradic
#781F90 #90401F #37901F #1F7090
square
#781F90 #90401F #37901F #1F7090
split-complementary
#781F90 #70901F #1F9040
monochromatic
#24092B #4E145E #781F90 #A22AC2 #BC50D9

Accessibility & contrast

On white

8.76
#781F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#781F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F90
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F90#FFFFFF#000000##FFFFFF
##781F901.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004593
Deuteranopia (green-blind)
#234D8E
Tritanopia (blue-blind)
#773857
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #781f90;
/* rgb */ color: rgb(120, 31, 144);
/* oklch */ color: oklch(43.6% 0.182 317.9);
Tailwind
colors: {
  custom: {
    50: '#a366b1',
    500: '#781f90',
    950: '#000000',
  },
}
SCSS
$custom: #781f90;
$custom-light: #a366b1;
$custom-dark: #000000;
JSON
{
  "hex": "#781f90",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 287.257,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.43567,
    "c": 0.18172,
    "h": 317.9
  },
  "luminance": 0.06987
}

Semantic roles & 50–950 ramp

primary
#781F90
secondary
#66BC4E
accent
#E84064
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #781F90

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

Preview Lab → · Contrast checker → · Palette generator →

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