#785BD2#785BD2

#785BD2 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.1% C 0.176 H 290.9°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#785BD2
RGBrgb(120, 91, 210)
HSLhsl(255, 57%, 59%)
HSVhsv(255, 57%, 82%)
CMYKcmyk(42.9%, 56.7%, 0%, 17.6%)
CIE-LABlab(47.14, 39.94, -57.66)
CIE-LCHlch(47.14, 70.15, 304.71°)
OKLaboklab(56.1% 0.0626 -0.1642)
OKLCHoklch(56.1% 0.176 290.9)
XYZxyz(23.1165, 16.1276, 62.8552)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BD2 #B5D25B
analogous
#5B7AD2 #785BD2 #B45BD2
triadic
#785BD2 #D2785B #5BD278
tetradic
#785BD2 #D25B7A #B5D25B #5BD2B4
square
#785BD2 #D25B7A #B5D25B #5BD2B4
split-complementary
#785BD2 #D2B45B #7AD25B
monochromatic
#3F268C #5534BC #785BD2 #A08BDF #C7BBEC

Accessibility & contrast

On white

4.97
#785BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#785BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785BD2
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BD2#FFFFFF#000000##FFFFFF
##785BD21.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1372D6
Deuteranopia (green-blind)
#1D6DCF
Tritanopia (blue-blind)
#5E758E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #785bd2;
/* rgb */ color: rgb(120, 91, 210);
/* oklch */ color: oklch(56.1% 0.176 290.9);
Tailwind
colors: {
  custom: {
    50: '#a48ae0',
    500: '#785bd2',
    950: '#000000',
  },
}
SCSS
$custom: #785bd2;
$custom-light: #a48ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#785bd2",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 254.622,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56098,
    "c": 0.17575,
    "h": 290.9
  },
  "luminance": 0.16128
}

Semantic roles & 50–950 ramp

primary
#785BD2
secondary
#D0DCAD
accent
#E048BB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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