#784D98#784D98

#784D98 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.1% C 0.123 H 309.1°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#784D98
RGBrgb(120, 77, 152)
HSLhsl(274, 33%, 45%)
HSVhsv(274, 49%, 60%)
CMYKcmyk(21.1%, 49.3%, 0%, 40.4%)
CIE-LABlab(40.52, 32.83, -34.24)
CIE-LCHlch(40.52, 47.44, 313.79°)
OKLaboklab(50.08% 0.0776 -0.0956)
OKLCHoklch(50.08% 0.123 309.1)
XYZxyz(16.0660, 11.5681, 31.0862)
Luminance0.1157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#784D98 #6D984D
analogous
#534D98 #784D98 #984D93
triadic
#784D98 #98784D #4D9878
tetradic
#784D98 #98534D #6D984D #4D9398
square
#784D98 #98534D #6D984D #4D9398
split-complementary
#784D98 #93984D #4D9853
monochromatic
#382447 #58386F #784D98 #966DB5 #B496CA

Accessibility & contrast

On white

6.34
#784D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#784D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #784D98
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##784D98#FFFFFF#000000##FFFFFF
##784D981.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5E9B
Deuteranopia (green-blind)
#466096
Tritanopia (blue-blind)
#74596B
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #784d98;
/* rgb */ color: rgb(120, 77, 152);
/* oklch */ color: oklch(50.1% 0.123 309.1);
Tailwind
colors: {
  custom: {
    50: '#a180b6',
    500: '#784d98',
    950: '#000000',
  },
}
SCSS
$custom: #784d98;
$custom-light: #a180b6;
$custom-dark: #000000;
JSON
{
  "hex": "#784d98",
  "rgb": {
    "r": 120,
    "g": 77,
    "b": 152
  },
  "hsl": {
    "h": 274.4,
    "s": 32.751,
    "l": 44.902
  },
  "oklch": {
    "l": 0.5008,
    "c": 0.12317,
    "h": 309.1
  },
  "luminance": 0.11568
}

Semantic roles & 50–950 ramp

primary
#784D98
secondary
#9DB68B
accent
#C95F8C
background
#FAF7FB
surface
#F3EEF6
border
#CDC9D0
text
#0F0A11
muted
#7F7C80

Preview Lab

Preview with #784D98

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

Preview Lab → · Contrast checker → · Palette generator →

#784D98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva