#785CD2#785CD2

#785CD2 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.3% C 0.174 H 290.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#785CD2
RGBrgb(120, 92, 210)
HSLhsl(254, 57%, 59%)
HSVhsv(254, 56%, 82%)
CMYKcmyk(42.9%, 56.2%, 0%, 17.6%)
CIE-LABlab(47.37, 39.36, -57.30)
CIE-LCHlch(47.37, 69.52, 304.49°)
OKLaboklab(56.26% 0.0614 -0.1632)
OKLCHoklch(56.26% 0.174 290.6)
XYZxyz(23.2025, 16.2998, 62.8839)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CD2 #B6D25C
analogous
#5C7BD2 #785CD2 #B35CD2
triadic
#785CD2 #D2785C #5CD278
tetradic
#785CD2 #D25C7B #B6D25C #5CD2B3
square
#785CD2 #D25C7B #B6D25C #5CD2B3
split-complementary
#785CD2 #D2B35C #7BD25C
monochromatic
#3F278D #5534BD #785CD2 #A08CDF #C7BCEC

Accessibility & contrast

On white

4.93
#785CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#785CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CD2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CD2#FFFFFF#000000##FFFFFF
##785CD21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1872D6
Deuteranopia (green-blind)
#206ECF
Tritanopia (blue-blind)
#5E768E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #785cd2;
/* rgb */ color: rgb(120, 92, 210);
/* oklch */ color: oklch(56.3% 0.174 290.6);
Tailwind
colors: {
  custom: {
    50: '#a48be0',
    500: '#785cd2',
    950: '#000000',
  },
}
SCSS
$custom: #785cd2;
$custom-light: #a48be0;
$custom-dark: #000000;
JSON
{
  "hex": "#785cd2",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 254.237,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56263,
    "c": 0.17435,
    "h": 290.6
  },
  "luminance": 0.16301
}

Semantic roles & 50–950 ramp

primary
#785CD2
secondary
#D1DCAE
accent
#E048BC
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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