#782E97#782E97

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

Color values

HEX#782E97
RGBrgb(120, 46, 151)
HSLhsl(282, 53%, 39%)
HSVhsv(282, 70%, 59%)
CMYKcmyk(20.5%, 69.5%, 0%, 40.8%)
CIE-LABlab(34.36, 48.91, -43.46)
CIE-LCHlch(34.36, 65.43, 318.38°)
OKLaboklab(45.56% 0.1188 -0.1224)
OKLCHoklch(45.56% 0.171 314.1)
XYZxyz(14.3077, 8.1819, 30.0977)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782E97 #4D972E
analogous
#432E97 #782E97 #972E81
triadic
#782E97 #97782E #2E9778
tetradic
#782E97 #97432E #4D972E #2E8197
square
#782E97 #97432E #4D972E #2E8197
split-complementary
#782E97 #81972E #2E9743
monochromatic
#2D1139 #532068 #782E97 #9D3EC4 #B56DD2

Accessibility & contrast

On white

7.97
#782E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #782E97
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782E97#FFFFFF#000000##FFFFFF
##782E971.007.972.647.97
#FFFFFF7.971.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #782e97;
/* rgb */ color: rgb(120, 46, 151);
/* oklch */ color: oklch(45.6% 0.171 314.1);
Tailwind
colors: {
  custom: {
    50: '#a26db6',
    500: '#782e97',
    950: '#000000',
  },
}
SCSS
$custom: #782e97;
$custom-light: #a26db6;
$custom-dark: #000000;
JSON
{
  "hex": "#782e97",
  "rgb": {
    "r": 120,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 282.286,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45556,
    "c": 0.17053,
    "h": 314.1
  },
  "luminance": 0.08181
}

Semantic roles & 50–950 ramp

primary
#782E97
secondary
#7FBA67
accent
#DD4B76
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782E97

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

Preview Lab → · Contrast checker → · Palette generator →

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