#782B7E#782B7E

#782B7E is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.6% C 0.150 H 324.8°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#782B7E
RGBrgb(120, 43, 126)
HSLhsl(296, 49%, 33%)
HSVhsv(296, 66%, 49%)
CMYKcmyk(4.8%, 65.9%, 0%, 50.6%)
CIE-LABlab(32.32, 45.14, -31.28)
CIE-LCHlch(32.32, 54.92, 325.28°)
OKLaboklab(43.59% 0.1229 -0.0868)
OKLCHoklch(43.59% 0.15 324.8)
XYZxyz(12.3752, 7.2279, 20.4779)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782B7E #317E2B
analogous
#4E2B7E #782B7E #7E2B5A
triadic
#782B7E #7E782B #2B7E78
tetradic
#782B7E #7E4E2B #317E2B #2B5A7E
square
#782B7E #7E4E2B #317E2B #2B5A7E
split-complementary
#782B7E #5A7E2B #2B7E4E
monochromatic
#210C23 #4D1B50 #782B7E #A33BAC #C05CC7

Accessibility & contrast

On white

8.59
#782B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#782B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782B7E
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782B7E#FFFFFF#000000##FFFFFF
##782B7E1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4680
Deuteranopia (green-blind)
#3A4F7C
Tritanopia (blue-blind)
#7B3750
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #782b7e;
/* rgb */ color: rgb(120, 43, 126);
/* oklch */ color: oklch(43.6% 0.150 324.8);
Tailwind
colors: {
  custom: {
    50: '#a26aa4',
    500: '#782b7e',
    950: '#000000',
  },
}
SCSS
$custom: #782b7e;
$custom-light: #a26aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#782b7e",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 295.663,
    "s": 49.112,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43589,
    "c": 0.15047,
    "h": 324.8
  },
  "luminance": 0.07227
}

Semantic roles & 50–950 ramp

primary
#782B7E
secondary
#5EAD58
accent
#D94F59
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F070F
muted
#7F7A7F

Preview Lab

Preview with #782B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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