#782B97#782B97

#782B97 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.2% C 0.174 H 314.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#782B97
RGBrgb(120, 43, 151)
HSLhsl(283, 56%, 38%)
HSVhsv(283, 72%, 59%)
CMYKcmyk(20.5%, 71.5%, 0%, 40.8%)
CIE-LABlab(33.89, 50.23, -44.21)
CIE-LCHlch(33.89, 66.92, 318.65°)
OKLaboklab(45.22% 0.1221 -0.1246)
OKLCHoklch(45.22% 0.174 314.4)
XYZxyz(14.1946, 7.9557, 30.0600)
Luminance0.0795 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782B97 #4A972B
analogous
#422B97 #782B97 #972B80
triadic
#782B97 #97782B #2B9778
tetradic
#782B97 #97422B #4A972B #2B8097
square
#782B97 #97422B #4A972B #2B8097
split-complementary
#782B97 #80972B #2B9742
monochromatic
#2C1038 #521D67 #782B97 #9E39C7 #B568D4

Accessibility & contrast

On white

8.10
#782B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#782B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782B97
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782B97#FFFFFF#000000##FFFFFF
##782B971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#265295
Tritanopia (blue-blind)
#75415E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #782b97;
/* rgb */ color: rgb(120, 43, 151);
/* oklch */ color: oklch(45.2% 0.174 314.4);
Tailwind
colors: {
  custom: {
    50: '#a36bb6',
    500: '#782b97',
    950: '#000000',
  },
}
SCSS
$custom: #782b97;
$custom-light: #a36bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#782b97",
  "rgb": {
    "r": 120,
    "g": 43,
    "b": 151
  },
  "hsl": {
    "h": 282.778,
    "s": 55.67,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45221,
    "c": 0.17442,
    "h": 314.4
  },
  "luminance": 0.07955
}

Semantic roles & 50–950 ramp

primary
#782B97
secondary
#7CBB63
accent
#DF4974
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #782B97

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

Preview Lab → · Contrast checker → · Palette generator →

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