#781F85#781F85

#781F85 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.172 H 322.2°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#781F85
RGBrgb(120, 31, 133)
HSLhsl(292, 62%, 32%)
HSVhsv(292, 77%, 52%)
CMYKcmyk(9.8%, 76.7%, 0%, 47.8%)
CIE-LABlab(31.04, 51.31, -37.69)
CIE-LCHlch(31.04, 63.67, 323.70°)
OKLaboklab(42.81% 0.136 -0.1054)
OKLCHoklch(42.81% 0.172 322.2)
XYZxyz(12.4689, 6.6672, 22.8159)
Luminance0.0667 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F85 #2C851F
analogous
#451F85 #781F85 #851F5F
triadic
#781F85 #85781F #1F8578
tetradic
#781F85 #85451F #2C851F #1F5F85
square
#781F85 #85451F #2C851F #1F5F85
split-complementary
#781F85 #5F851F #1F8545
monochromatic
#1E0822 #4B1353 #781F85 #A52BB7 #C34AD5

Accessibility & contrast

On white

9.00
#781F85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#781F85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F85
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F85#FFFFFF#000000##FFFFFF
##781F851.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004388
Deuteranopia (green-blind)
#2E4C83
Tritanopia (blue-blind)
#793351
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781f85;
/* rgb */ color: rgb(120, 31, 133);
/* oklch */ color: oklch(42.8% 0.172 322.2);
Tailwind
colors: {
  custom: {
    50: '#a265a9',
    500: '#781f85',
    950: '#000000',
  },
}
SCSS
$custom: #781f85;
$custom-light: #a265a9;
$custom-dark: #000000;
JSON
{
  "hex": "#781f85",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 133
  },
  "hsl": {
    "h": 292.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.17206,
    "h": 322.2
  },
  "luminance": 0.06666
}

Semantic roles & 50–950 ramp

primary
#781F85
secondary
#57B749
accent
#E54357
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #781F85

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

Preview Lab → · Contrast checker → · Palette generator →

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