#782D91#782D91

#782D91 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.0% C 0.166 H 316.5°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#782D91
RGBrgb(120, 45, 145)
HSLhsl(285, 53%, 37%)
HSVhsv(285, 69%, 57%)
CMYKcmyk(17.2%, 69%, 0%, 43.1%)
CIE-LABlab(33.80, 48.08, -40.68)
CIE-LCHlch(33.80, 62.98, 319.77°)
OKLaboklab(45.03% 0.1203 -0.1142)
OKLCHoklch(45.03% 0.166 316.5)
XYZxyz(13.7942, 7.9147, 27.5836)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D91 #46912D
analogous
#462D91 #782D91 #912D78
triadic
#782D91 #91782D #2D9178
tetradic
#782D91 #91462D #46912D #2D7891
square
#782D91 #91462D #46912D #2D7891
split-complementary
#782D91 #78912D #2D9146
monochromatic
#2B1034 #511F62 #782D91 #9F3BC0 #B668D0

Accessibility & contrast

On white

8.13
#782D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#782D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782D91
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782D91#FFFFFF#000000##FFFFFF
##782D911.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B94
Deuteranopia (green-blind)
#2E528F
Tritanopia (blue-blind)
#77405B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #782d91;
/* rgb */ color: rgb(120, 45, 145);
/* oklch */ color: oklch(45.0% 0.166 316.5);
Tailwind
colors: {
  custom: {
    50: '#a26cb2',
    500: '#782d91',
    950: '#000000',
  },
}
SCSS
$custom: #782d91;
$custom-light: #a26cb2;
$custom-dark: #000000;
JSON
{
  "hex": "#782d91",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 145
  },
  "hsl": {
    "h": 285,
    "s": 52.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45032,
    "c": 0.16591,
    "h": 316.5
  },
  "luminance": 0.07914
}

Semantic roles & 50–950 ramp

primary
#782D91
secondary
#78B763
accent
#DC4C70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782D91

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

Preview Lab → · Contrast checker → · Palette generator →

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