#782D98#782D98

#782D98 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.173 H 313.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#782D98
RGBrgb(120, 45, 152)
HSLhsl(282, 54%, 39%)
HSVhsv(282, 70%, 60%)
CMYKcmyk(21.1%, 70.4%, 0%, 40.4%)
CIE-LABlab(34.27, 49.58, -44.21)
CIE-LCHlch(34.27, 66.43, 318.27°)
OKLaboklab(45.51% 0.1198 -0.1246)
OKLCHoklch(45.51% 0.173 313.9)
XYZxyz(14.3506, 8.1373, 30.5144)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782D98 #4D982D
analogous
#422D98 #782D98 #982D82
triadic
#782D98 #98782D #2D9878
tetradic
#782D98 #98422D #4D982D #2D8298
square
#782D98 #98422D #4D982D #2D8298
split-complementary
#782D98 #82982D #2D9842
monochromatic
#2D113A #531F69 #782D98 #9D3DC5 #B56CD3

Accessibility & contrast

On white

7.99
#782D98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#782D98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782D98
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782D98#FFFFFF#000000##FFFFFF
##782D981.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9B
Deuteranopia (green-blind)
#275296
Tritanopia (blue-blind)
#75435F
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #782d98;
/* rgb */ color: rgb(120, 45, 152);
/* oklch */ color: oklch(45.5% 0.173 313.9);
Tailwind
colors: {
  custom: {
    50: '#a26cb7',
    500: '#782d98',
    950: '#000000',
  },
}
SCSS
$custom: #782d98;
$custom-light: #a26cb7;
$custom-dark: #000000;
JSON
{
  "hex": "#782d98",
  "rgb": {
    "r": 120,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 282.056,
    "s": 54.315,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45512,
    "c": 0.17285,
    "h": 313.9
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#782D98
secondary
#7FBA66
accent
#DE4A76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782D98

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

Preview Lab → · Contrast checker → · Palette generator →

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