#783291#783291

#783291 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.6% C 0.159 H 316.0°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#783291
RGBrgb(120, 50, 145)
HSLhsl(284, 49%, 38%)
HSVhsv(284, 66%, 57%)
CMYKcmyk(17.2%, 65.5%, 0%, 43.1%)
CIE-LABlab(34.64, 45.77, -39.34)
CIE-LCHlch(34.64, 60.35, 319.31°)
OKLaboklab(45.63% 0.1143 -0.1104)
OKLCHoklch(45.63% 0.159 316)
XYZxyz(13.9964, 8.3191, 27.6510)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783291 #4B9132
analogous
#493291 #783291 #91327A
triadic
#783291 #917832 #329178
tetradic
#783291 #914932 #4B9132 #327A91
square
#783291 #914932 #4B9132 #327A91
split-complementary
#783291 #7A9132 #329149
monochromatic
#2D1336 #522263 #783291 #9D42BE #B570CE

Accessibility & contrast

On white

7.88
#783291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#783291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783291
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783291#FFFFFF#000000##FFFFFF
##7832911.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4D94
Deuteranopia (green-blind)
#32538F
Tritanopia (blue-blind)
#76435D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #783291;
/* rgb */ color: rgb(120, 50, 145);
/* oklch */ color: oklch(45.6% 0.159 316.0);
Tailwind
colors: {
  custom: {
    50: '#a26fb2',
    500: '#783291',
    950: '#000000',
  },
}
SCSS
$custom: #783291;
$custom-light: #a26fb2;
$custom-dark: #000000;
JSON
{
  "hex": "#783291",
  "rgb": {
    "r": 120,
    "g": 50,
    "b": 145
  },
  "hsl": {
    "h": 284.211,
    "s": 48.718,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45633,
    "c": 0.15891,
    "h": 316
  },
  "luminance": 0.08319
}

Semantic roles & 50–950 ramp

primary
#783291
secondary
#7DB569
accent
#D85074
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #783291

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

Preview Lab → · Contrast checker → · Palette generator →

#783291 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva