#783E98#783E98

#783E98 is a mid, vivid violet. Relative luminance 0.097; OKLCH L 47.7% C 0.148 H 311.8°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#783E98
RGBrgb(120, 62, 152)
HSLhsl(279, 42%, 42%)
HSVhsv(279, 59%, 60%)
CMYKcmyk(21.1%, 59.2%, 0%, 40.4%)
CIE-LABlab(37.31, 41.23, -39.34)
CIE-LCHlch(37.31, 56.99, 316.34°)
OKLaboklab(47.71% 0.0988 -0.1104)
OKLCHoklch(47.71% 0.148 311.8)
XYZxyz(15.1348, 9.7057, 30.7758)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783E98 #5E983E
analogous
#4B3E98 #783E98 #983E8B
triadic
#783E98 #98783E #3E9878
tetradic
#783E98 #984B3E #5E983E #3E8B98
square
#783E98 #984B3E #5E983E #3E8B98
split-complementary
#783E98 #8B983E #3E984B
monochromatic
#331B41 #562C6D #783E98 #9858BB #B384CD

Accessibility & contrast

On white

7.14
#783E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#783E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783E98
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783E98#FFFFFF#000000##FFFFFF
##783E981.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559B
Deuteranopia (green-blind)
#375996
Tritanopia (blue-blind)
#744E65
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #783e98;
/* rgb */ color: rgb(120, 62, 152);
/* oklch */ color: oklch(47.7% 0.148 311.8);
Tailwind
colors: {
  custom: {
    50: '#a276b7',
    500: '#783e98',
    950: '#000000',
  },
}
SCSS
$custom: #783e98;
$custom-light: #a276b7;
$custom-dark: #000000;
JSON
{
  "hex": "#783e98",
  "rgb": {
    "r": 120,
    "g": 62,
    "b": 152
  },
  "hsl": {
    "h": 278.667,
    "s": 42.056,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.14818,
    "h": 311.8
  },
  "luminance": 0.09705
}

Semantic roles & 50–950 ramp

primary
#783E98
secondary
#90B77B
accent
#D25682
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0911
muted
#7F7B80

Preview Lab

Preview with #783E98

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

Preview Lab → · Contrast checker → · Palette generator →

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