#782B87#782B87

#782B87 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.1% C 0.159 H 320.7°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#782B87
RGBrgb(120, 43, 135)
HSLhsl(290, 52%, 35%)
HSVhsv(290, 68%, 53%)
CMYKcmyk(11.1%, 68.1%, 0%, 47.1%)
CIE-LABlab(32.86, 46.92, -36.03)
CIE-LCHlch(32.86, 59.16, 322.47°)
OKLaboklab(44.15% 0.123 -0.1006)
OKLCHoklch(44.15% 0.159 320.7)
XYZxyz(12.9823, 7.4707, 23.6751)
Luminance0.0747 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782B87 #3A872B
analogous
#4A2B87 #782B87 #872B68
triadic
#782B87 #87782B #2B8778
tetradic
#782B87 #874A2B #3A872B #2B6887
square
#782B87 #874A2B #3A872B #2B6887
split-complementary
#782B87 #68872B #2B874A
monochromatic
#250D2A #4F1C59 #782B87 #A13AB5 #BB60CC

Accessibility & contrast

On white

8.42
#782B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#782B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782B87
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782B87#FFFFFF#000000##FFFFFF
##782B871.008.422.498.42
#FFFFFF8.421.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488A
Deuteranopia (green-blind)
#345085
Tritanopia (blue-blind)
#793B55
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #782b87;
/* rgb */ color: rgb(120, 43, 135);
/* oklch */ color: oklch(44.1% 0.159 320.7);
Tailwind
colors: {
  custom: {
    50: '#a26baa',
    500: '#782b87',
    950: '#000000',
  },
}
SCSS
$custom: #782b87;
$custom-light: #a26baa;
$custom-dark: #000000;
JSON
{
  "hex": "#782b87",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 290.217,
    "s": 51.685,
    "l": 34.902
  },
  "oklch": {
    "l": 0.44148,
    "c": 0.15894,
    "h": 320.7
  },
  "luminance": 0.0747
}

Semantic roles & 50–950 ramp

primary
#782B87
secondary
#6AB25B
accent
#DB4D64
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782B87

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

Preview Lab → · Contrast checker → · Palette generator →

#782B87 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva