#782F95#782F95

#782F95 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.5% C 0.167 H 314.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#782F95
RGBrgb(120, 47, 149)
HSLhsl(283, 52%, 38%)
HSVhsv(283, 68%, 58%)
CMYKcmyk(19.5%, 68.5%, 0%, 41.6%)
CIE-LABlab(34.39, 48.03, -42.19)
CIE-LCHlch(34.39, 63.93, 318.70°)
OKLaboklab(45.54% 0.1178 -0.1187)
OKLCHoklch(45.54% 0.167 314.8)
XYZxyz(14.1862, 8.1965, 29.2627)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782F95 #4C952F
analogous
#452F95 #782F95 #952F7F
triadic
#782F95 #95782F #2F9578
tetradic
#782F95 #95452F #4C952F #2F7F95
square
#782F95 #95452F #4C952F #2F7F95
split-complementary
#782F95 #7F952F #2F9545
monochromatic
#2D1238 #532066 #782F95 #9D3FC2 #B56DD1

Accessibility & contrast

On white

7.96
#782F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#782F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782F95
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782F95#FFFFFF#000000##FFFFFF
##782F951.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D98
Deuteranopia (green-blind)
#2C5393
Tritanopia (blue-blind)
#76435E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782f95;
/* rgb */ color: rgb(120, 47, 149);
/* oklch */ color: oklch(45.5% 0.167 314.8);
Tailwind
colors: {
  custom: {
    50: '#a26db5',
    500: '#782f95',
    950: '#000000',
  },
}
SCSS
$custom: #782f95;
$custom-light: #a26db5;
$custom-dark: #000000;
JSON
{
  "hex": "#782f95",
  "rgb": {
    "r": 120,
    "g": 47,
    "b": 149
  },
  "hsl": {
    "h": 282.941,
    "s": 52.041,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45535,
    "c": 0.16718,
    "h": 314.8
  },
  "luminance": 0.08196
}

Semantic roles & 50–950 ramp

primary
#782F95
secondary
#7EB867
accent
#DB4C75
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782F95

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

Preview Lab → · Contrast checker → · Palette generator →

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