#785DCA#785DCA

#785DCA is a mid, vivid violet. Relative luminance 0.161; OKLCH L 55.9% C 0.163 H 291.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#785DCA
RGBrgb(120, 93, 202)
HSLhsl(255, 51%, 58%)
HSVhsv(255, 54%, 79%)
CMYKcmyk(40.6%, 54%, 0%, 20.8%)
CIE-LABlab(47.09, 36.54, -53.16)
CIE-LCHlch(47.09, 64.51, 304.50°)
OKLaboklab(55.9% 0.06 -0.151)
OKLCHoklch(55.9% 0.163 291.7)
XYZxyz(22.3179, 16.0854, 57.7946)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DCA #AFCA5D
analogous
#5D79CA #785DCA #AE5DCA
triadic
#785DCA #CA785D #5DCA78
tetradic
#785DCA #CA5D79 #AFCA5D #5DCAAE
square
#785DCA #CA5D79 #AFCA5D #5DCAAE
split-complementary
#785DCA #CAAE5D #79CA5D
monochromatic
#402B82 #573AB0 #785DCA #9E8BD9 #C5B9E8

Accessibility & contrast

On white

4.98
#785DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#785DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DCA
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DCA#FFFFFF#000000##FFFFFF
##785DCA1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A71CE
Deuteranopia (green-blind)
#2F6DC8
Tritanopia (blue-blind)
#62748A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #785dca;
/* rgb */ color: rgb(120, 93, 202);
/* oklch */ color: oklch(55.9% 0.163 291.7);
Tailwind
colors: {
  custom: {
    50: '#a48bdb',
    500: '#785dca',
    950: '#000000',
  },
}
SCSS
$custom: #785dca;
$custom-light: #a48bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#785dca",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 202
  },
  "hsl": {
    "h": 254.862,
    "s": 50.698,
    "l": 57.843
  },
  "oklch": {
    "l": 0.55895,
    "c": 0.1625,
    "h": 291.7
  },
  "luminance": 0.16086
}

Semantic roles & 50–950 ramp

primary
#785DCA
secondary
#CCD7AC
accent
#DA4EB7
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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