#781F83#781F83

#781F83 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.170 H 323.1°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#781F83
RGBrgb(120, 31, 131)
HSLhsl(293, 62%, 32%)
HSVhsv(293, 76%, 51%)
CMYKcmyk(8.4%, 76.3%, 0%, 48.6%)
CIE-LABlab(30.91, 50.94, -36.65)
CIE-LCHlch(30.91, 62.75, 324.26°)
OKLaboklab(42.67% 0.1362 -0.1024)
OKLCHoklch(42.67% 0.17 323.1)
XYZxyz(12.3321, 6.6125, 22.0951)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781F83 #2A831F
analogous
#461F83 #781F83 #831F5C
triadic
#781F83 #83781F #1F8378
tetradic
#781F83 #83461F #2A831F #1F5C83
square
#781F83 #83461F #2A831F #1F5C83
split-complementary
#781F83 #5C831F #1F8346
monochromatic
#1D0820 #4B1352 #781F83 #A52BB4 #C549D4

Accessibility & contrast

On white

9.04
#781F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#781F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781F83
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781F83#FFFFFF#000000##FFFFFF
##781F831.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#304C81
Tritanopia (blue-blind)
#7A3250
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #781f83;
/* rgb */ color: rgb(120, 31, 131);
/* oklch */ color: oklch(42.7% 0.170 323.1);
Tailwind
colors: {
  custom: {
    50: '#a265a7',
    500: '#781f83',
    950: '#000000',
  },
}
SCSS
$custom: #781f83;
$custom-light: #a265a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781f83",
  "rgb": {
    "r": 120,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 293.4,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42673,
    "c": 0.17034,
    "h": 323.1
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#781F83
secondary
#54B648
accent
#E54355
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781F83

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

Preview Lab → · Contrast checker → · Palette generator →

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