#785DCD#785DCD

#785DCD is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.1% C 0.166 H 291.2°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#785DCD
RGBrgb(120, 93, 205)
HSLhsl(254, 53%, 58%)
HSVhsv(254, 55%, 80%)
CMYKcmyk(41.5%, 54.6%, 0%, 19.6%)
CIE-LABlab(47.27, 37.38, -54.59)
CIE-LCHlch(47.27, 66.16, 304.40°)
OKLaboklab(56.09% 0.0601 -0.1552)
OKLCHoklch(56.09% 0.166 291.2)
XYZxyz(22.6765, 16.2289, 59.6835)
Luminance0.1623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DCD #B2CD5D
analogous
#5D7ACD #785DCD #B05DCD
triadic
#785DCD #CD785D #5DCD78
tetradic
#785DCD #CD5D7A #B2CD5D #5DCDB0
square
#785DCD #CD5D7A #B2CD5D #5DCDB0
split-complementary
#785DCD #CDB05D #7ACD5D
monochromatic
#402986 #5638B5 #785DCD #9F8CDB #C6BBEA

Accessibility & contrast

On white

4.95
#785DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#785DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DCD
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DCD#FFFFFF#000000##FFFFFF
##785DCD1.004.954.254.95
#FFFFFF4.951.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2572D1
Deuteranopia (green-blind)
#2B6ECB
Tritanopia (blue-blind)
#61758C
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #785dcd;
/* rgb */ color: rgb(120, 93, 205);
/* oklch */ color: oklch(56.1% 0.166 291.2);
Tailwind
colors: {
  custom: {
    50: '#a48bdd',
    500: '#785dcd',
    950: '#000000',
  },
}
SCSS
$custom: #785dcd;
$custom-light: #a48bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#785dcd",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 205
  },
  "hsl": {
    "h": 254.464,
    "s": 52.83,
    "l": 58.431
  },
  "oklch": {
    "l": 0.56093,
    "c": 0.16643,
    "h": 291.2
  },
  "luminance": 0.1623
}

Semantic roles & 50–950 ramp

primary
#785DCD
secondary
#CED9AD
accent
#DC4CB9
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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