#782B8A#782B8A

#782B8A is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.3% C 0.162 H 319.5°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#782B8A
RGBrgb(120, 43, 138)
HSLhsl(289, 52%, 35%)
HSVhsv(289, 69%, 54%)
CMYKcmyk(13%, 68.8%, 0%, 45.9%)
CIE-LABlab(33.04, 47.52, -37.59)
CIE-LCHlch(33.04, 60.59, 321.65°)
OKLaboklab(44.34% 0.123 -0.1052)
OKLCHoklch(44.34% 0.162 319.5)
XYZxyz(13.1965, 7.5564, 24.8032)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782B8A #3D8A2B
analogous
#492B8A #782B8A #8A2B6C
triadic
#782B8A #8A782B #2B8A78
tetradic
#782B8A #8A492B #3D8A2B #2B6C8A
square
#782B8A #8A492B #3D8A2B #2B6C8A
split-complementary
#782B8A #6C8A2B #2B8A49
monochromatic
#270E2D #4F1C5B #782B8A #A13AB9 #B961CE

Accessibility & contrast

On white

8.36
#782B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#782B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782B8A
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782B8A#FFFFFF#000000##FFFFFF
##782B8A1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498D
Deuteranopia (green-blind)
#325088
Tritanopia (blue-blind)
#783C57
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #782b8a;
/* rgb */ color: rgb(120, 43, 138);
/* oklch */ color: oklch(44.3% 0.162 319.5);
Tailwind
colors: {
  custom: {
    50: '#a26bad',
    500: '#782b8a',
    950: '#000000',
  },
}
SCSS
$custom: #782b8a;
$custom-light: #a26bad;
$custom-dark: #000000;
JSON
{
  "hex": "#782b8a",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 288.632,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44341,
    "c": 0.16182,
    "h": 319.5
  },
  "luminance": 0.07556
}

Semantic roles & 50–950 ramp

primary
#782B8A
secondary
#6DB45D
accent
#DC4C67
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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