#785CD6#785CD6

#785CD6 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.179 H 290.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#785CD6
RGBrgb(120, 92, 214)
HSLhsl(254, 60%, 60%)
HSVhsv(254, 57%, 84%)
CMYKcmyk(43.9%, 57%, 0%, 16.1%)
CIE-LABlab(47.63, 40.49, -59.17)
CIE-LCHlch(47.63, 71.70, 304.38°)
OKLaboklab(56.54% 0.0614 -0.1686)
OKLCHoklch(56.54% 0.179 290)
XYZxyz(23.7071, 16.5016, 65.5413)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CD6 #BAD65C
analogous
#5C7DD6 #785CD6 #B55CD6
triadic
#785CD6 #D6785C #5CD678
tetradic
#785CD6 #D65C7D #BAD65C #5CD6B5
square
#785CD6 #D65C7D #BAD65C #5CD6B5
split-complementary
#785CD6 #D6B55C #7DD65C
monochromatic
#3E2593 #5331C4 #785CD6 #A08DE2 #C9BEEF

Accessibility & contrast

On white

4.88
#785CD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#785CD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CD6
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CD6#FFFFFF#000000##FFFFFF
##785CD61.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B73DA
Deuteranopia (green-blind)
#166ED3
Tritanopia (blue-blind)
#5C7790
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785cd6;
/* rgb */ color: rgb(120, 92, 214);
/* oklch */ color: oklch(56.5% 0.179 290.0);
Tailwind
colors: {
  custom: {
    50: '#a58be3',
    500: '#785cd6',
    950: '#000000',
  },
}
SCSS
$custom: #785cd6;
$custom-light: #a58be3;
$custom-dark: #000000;
JSON
{
  "hex": "#785cd6",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 214
  },
  "hsl": {
    "h": 253.77,
    "s": 59.804,
    "l": 60
  },
  "oklch": {
    "l": 0.56538,
    "c": 0.17949,
    "h": 290
  },
  "luminance": 0.16502
}

Semantic roles & 50–950 ramp

primary
#785CD6
secondary
#D4DEAF
accent
#E345BF
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785CD6

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

Preview Lab → · Contrast checker → · Palette generator →

#785CD6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva