#782287#782287

#782287 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.170 H 321.3°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#782287
RGBrgb(120, 34, 135)
HSLhsl(291, 60%, 33%)
HSVhsv(291, 75%, 53%)
CMYKcmyk(11.1%, 74.8%, 0%, 47.1%)
CIE-LABlab(31.55, 50.60, -38.12)
CIE-LCHlch(31.55, 63.36, 323.01°)
OKLaboklab(43.21% 0.1329 -0.1067)
OKLCHoklch(43.21% 0.17 321.3)
XYZxyz(12.6904, 6.8871, 23.5779)
Luminance0.0689 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782287 #318722
analogous
#452287 #782287 #872263
triadic
#782287 #877822 #228778
tetradic
#782287 #874522 #318722 #226387
square
#782287 #874522 #318722 #226387
split-complementary
#782287 #638722 #228745
monochromatic
#210925 #4D1656 #782287 #A32EB8 #C050D3

Accessibility & contrast

On white

8.83
#782287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#782287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782287
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782287#FFFFFF#000000##FFFFFF
##7822871.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#2E4D85
Tritanopia (blue-blind)
#793553
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782287;
/* rgb */ color: rgb(120, 34, 135);
/* oklch */ color: oklch(43.2% 0.170 321.3);
Tailwind
colors: {
  custom: {
    50: '#a266aa',
    500: '#782287',
    950: '#000000',
  },
}
SCSS
$custom: #782287;
$custom-light: #a266aa;
$custom-dark: #000000;
JSON
{
  "hex": "#782287",
  "rgb": {
    "r": 120,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 291.089,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43211,
    "c": 0.17043,
    "h": 321.3
  },
  "luminance": 0.06886
}

Semantic roles & 50–950 ramp

primary
#782287
secondary
#5EB74E
accent
#E3455C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #782287

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

Preview Lab → · Contrast checker → · Palette generator →

#782287 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva