#782987#782987

#782987 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 43.9% C 0.162 H 320.8°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#782987
RGBrgb(120, 41, 135)
HSLhsl(290, 53%, 35%)
HSVhsv(290, 70%, 53%)
CMYKcmyk(11.1%, 69.6%, 0%, 47.1%)
CIE-LABlab(32.54, 47.79, -36.53)
CIE-LCHlch(32.54, 60.15, 322.60°)
OKLaboklab(43.92% 0.1254 -0.1021)
OKLCHoklch(43.92% 0.162 320.8)
XYZxyz(12.9113, 7.3289, 23.6515)
Luminance0.0733 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782987 #388729
analogous
#492987 #782987 #872967
triadic
#782987 #877829 #298778
tetradic
#782987 #874929 #388729 #296787
square
#782987 #874929 #388729 #296787
split-complementary
#782987 #678729 #298749
monochromatic
#250C29 #4E1B58 #782987 #A237B6 #BC5DCE

Accessibility & contrast

On white

8.52
#782987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#782987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782987
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782987#FFFFFF#000000##FFFFFF
##7829871.008.522.478.52
#FFFFFF8.521.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#793A55
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #782987;
/* rgb */ color: rgb(120, 41, 135);
/* oklch */ color: oklch(43.9% 0.162 320.8);
Tailwind
colors: {
  custom: {
    50: '#a26aaa',
    500: '#782987',
    950: '#000000',
  },
}
SCSS
$custom: #782987;
$custom-light: #a26aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#782987",
  "rgb": {
    "r": 120,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 290.426,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.43924,
    "c": 0.16166,
    "h": 320.8
  },
  "luminance": 0.07328
}

Semantic roles & 50–950 ramp

primary
#782987
secondary
#67B359
accent
#DD4B62
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #782987

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

Preview Lab → · Contrast checker → · Palette generator →

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