#783899#783899

#783899 is a mid, vivid violet. Relative luminance 0.091; OKLCH L 46.9% C 0.159 H 312.3°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#783899
RGBrgb(120, 56, 153)
HSLhsl(280, 46%, 41%)
HSVhsv(280, 63%, 60%)
CMYKcmyk(21.6%, 63.4%, 0%, 40%)
CIE-LABlab(36.22, 44.58, -41.69)
CIE-LCHlch(36.22, 61.03, 316.91°)
OKLaboklab(46.94% 0.1067 -0.1173)
OKLCHoklch(46.94% 0.159 312.3)
XYZxyz(14.9086, 9.1217, 31.1061)
Luminance0.0912 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#783899 #599938
analogous
#483899 #783899 #993889
triadic
#783899 #997838 #389978
tetradic
#783899 #994838 #599938 #388999
square
#783899 #994838 #599938 #388999
split-complementary
#783899 #899938 #389948
monochromatic
#32173F #55286C #783899 #994FBF #B37CCF

Accessibility & contrast

On white

7.44
#783899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#783899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #783899
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##783899#FFFFFF#000000##FFFFFF
##7838991.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F529C
Deuteranopia (green-blind)
#315797
Tritanopia (blue-blind)
#744A63
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #783899;
/* rgb */ color: rgb(120, 56, 153);
/* oklch */ color: oklch(46.9% 0.159 312.3);
Tailwind
colors: {
  custom: {
    50: '#a273b7',
    500: '#783899',
    950: '#000000',
  },
}
SCSS
$custom: #783899;
$custom-light: #a273b7;
$custom-dark: #000000;
JSON
{
  "hex": "#783899",
  "rgb": {
    "r": 120,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 279.588,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46936,
    "c": 0.15851,
    "h": 312.3
  },
  "luminance": 0.09121
}

Semantic roles & 50–950 ramp

primary
#783899
secondary
#8CB874
accent
#D6527F
background
#FAF7FB
surface
#F4EDF6
border
#CEC8D0
text
#0F0811
muted
#7F7B80

Preview Lab

Preview with #783899

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

Preview Lab → · Contrast checker → · Palette generator →

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