#782B8D#782B8D

#782B8D is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.165 H 318.2°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#782B8D
RGBrgb(120, 43, 141)
HSLhsl(287, 53%, 36%)
HSVhsv(287, 70%, 55%)
CMYKcmyk(14.9%, 69.5%, 0%, 44.7%)
CIE-LABlab(33.23, 48.14, -39.14)
CIE-LCHlch(33.23, 62.04, 320.88°)
OKLaboklab(44.54% 0.1228 -0.1097)
OKLCHoklch(44.54% 0.165 318.2)
XYZxyz(13.4167, 7.6445, 25.9630)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782B8D #408D2B
analogous
#472B8D #782B8D #8D2B71
triadic
#782B8D #8D782B #2B8D78
tetradic
#782B8D #8D472B #408D2B #2B718D
square
#782B8D #8D472B #408D2B #2B718D
split-complementary
#782B8D #718D2B #2B8D47
monochromatic
#280E2F #501D5E #782B8D #A039BC #B863CF

Accessibility & contrast

On white

8.30
#782B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#782B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782B8D
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782B8D#FFFFFF#000000##FFFFFF
##782B8D1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#30518B
Tritanopia (blue-blind)
#783D58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782b8d;
/* rgb */ color: rgb(120, 43, 141);
/* oklch */ color: oklch(44.5% 0.165 318.2);
Tailwind
colors: {
  custom: {
    50: '#a26baf',
    500: '#782b8d',
    950: '#000000',
  },
}
SCSS
$custom: #782b8d;
$custom-light: #a26baf;
$custom-dark: #000000;
JSON
{
  "hex": "#782b8d",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 287.143,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44538,
    "c": 0.1647,
    "h": 318.2
  },
  "luminance": 0.07644
}

Semantic roles & 50–950 ramp

primary
#782B8D
secondary
#71B65E
accent
#DD4B6A
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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