#781B83#781B83

#781B83 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.175 H 323.2°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#781B83
RGBrgb(120, 27, 131)
HSLhsl(294, 66%, 31%)
HSVhsv(294, 79%, 51%)
CMYKcmyk(8.4%, 79.4%, 0%, 48.6%)
CIE-LABlab(30.44, 52.28, -37.40)
CIE-LCHlch(30.44, 64.28, 324.42°)
OKLaboklab(42.34% 0.1398 -0.1045)
OKLCHoklch(42.34% 0.175 323.2)
XYZxyz(12.2340, 6.4164, 22.0624)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781B83 #26831B
analogous
#441B83 #781B83 #831B5A
triadic
#781B83 #83781B #1B8378
tetradic
#781B83 #83441B #26831B #1B5A83
square
#781B83 #83441B #26831B #1B5A83
split-complementary
#781B83 #5A831B #1B8344
monochromatic
#1B061E #4A1150 #781B83 #A625B6 #C841D8

Accessibility & contrast

On white

9.20
#781B83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781B83
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781B83#FFFFFF#000000##FFFFFF
##781B831.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004186
Deuteranopia (green-blind)
#2D4B81
Tritanopia (blue-blind)
#7A2F4F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #781b83;
/* rgb */ color: rgb(120, 27, 131);
/* oklch */ color: oklch(42.3% 0.175 323.2);
Tailwind
colors: {
  custom: {
    50: '#a363a7',
    500: '#781b83',
    950: '#000000',
  },
}
SCSS
$custom: #781b83;
$custom-light: #a363a7;
$custom-dark: #000000;
JSON
{
  "hex": "#781b83",
  "rgb": {
    "r": 120,
    "g": 27,
    "b": 131
  },
  "hsl": {
    "h": 293.654,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4234,
    "c": 0.17456,
    "h": 323.2
  },
  "luminance": 0.06416
}

Semantic roles & 50–950 ramp

primary
#781B83
secondary
#50B643
accent
#E93F51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #781B83

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

Preview Lab → · Contrast checker → · Palette generator →

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