#783399#783399

#783399 is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.3% C 0.166 H 312.9°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#783399
RGBrgb(120, 51, 153)
HSLhsl(281, 50%, 40%)
HSVhsv(281, 67%, 60%)
CMYKcmyk(21.6%, 66.7%, 0%, 40%)
CIE-LABlab(35.32, 47.03, -43.13)
CIE-LCHlch(35.32, 63.81, 317.48°)
OKLaboklab(46.29% 0.1128 -0.1214)
OKLCHoklch(46.29% 0.166 312.9)
XYZxyz(14.6783, 8.6610, 31.0293)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783399 #549933
analogous
#453399 #783399 #993387
triadic
#783399 #997833 #339978
tetradic
#783399 #994533 #549933 #338799
square
#783399 #994533 #549933 #338799
split-complementary
#783399 #879933 #339945
monochromatic
#30143D #54246B #783399 #9A47C2 #B375D1

Accessibility & contrast

On white

7.69
#783399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#783399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783399
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783399#FFFFFF#000000##FFFFFF
##7833991.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004F9C
Deuteranopia (green-blind)
#2C5597
Tritanopia (blue-blind)
#754761
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #783399;
/* rgb */ color: rgb(120, 51, 153);
/* oklch */ color: oklch(46.3% 0.166 312.9);
Tailwind
colors: {
  custom: {
    50: '#a270b8',
    500: '#783399',
    950: '#000000',
  },
}
SCSS
$custom: #783399;
$custom-light: #a270b8;
$custom-dark: #000000;
JSON
{
  "hex": "#783399",
  "rgb": {
    "r": 120,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 280.588,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.4629,
    "c": 0.16575,
    "h": 312.9
  },
  "luminance": 0.08661
}

Semantic roles & 50–950 ramp

primary
#783399
secondary
#87B96E
accent
#DA4E7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #783399

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

Preview Lab → · Contrast checker → · Palette generator →

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