#782E98#782E98

#782E98 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.172 H 313.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#782E98
RGBrgb(120, 46, 152)
HSLhsl(282, 54%, 39%)
HSVhsv(282, 70%, 60%)
CMYKcmyk(21.1%, 69.7%, 0%, 40.4%)
CIE-LABlab(34.43, 49.13, -43.96)
CIE-LCHlch(34.43, 65.93, 318.18°)
OKLaboklab(45.63% 0.1187 -0.1238)
OKLCHoklch(45.63% 0.172 313.8)
XYZxyz(14.3893, 8.2145, 30.5273)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782E98 #4E982E
analogous
#432E98 #782E98 #982E83
triadic
#782E98 #98782E #2E9878
tetradic
#782E98 #98432E #4E982E #2E8398
square
#782E98 #98432E #4E982E #2E8398
split-complementary
#782E98 #83982E #2E9843
monochromatic
#2E123A #532069 #782E98 #9C3EC5 #B46DD3

Accessibility & contrast

On white

7.95
#782E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782E98
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782E98#FFFFFF#000000##FFFFFF
##782E981.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782e98;
/* rgb */ color: rgb(120, 46, 152);
/* oklch */ color: oklch(45.6% 0.172 313.8);
Tailwind
colors: {
  custom: {
    50: '#a26db7',
    500: '#782e98',
    950: '#000000',
  },
}
SCSS
$custom: #782e98;
$custom-light: #a26db7;
$custom-dark: #000000;
JSON
{
  "hex": "#782e98",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 281.887,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45625,
    "c": 0.17153,
    "h": 313.8
  },
  "luminance": 0.08214
}

Semantic roles & 50–950 ramp

primary
#782E98
secondary
#81BA68
accent
#DD4B77
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782E98

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

Preview Lab → · Contrast checker → · Palette generator →

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