#785BD7#785BD7

#785BD7 is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.4% C 0.182 H 290.1°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#785BD7
RGBrgb(120, 91, 215)
HSLhsl(254, 61%, 60%)
HSVhsv(254, 58%, 84%)
CMYKcmyk(44.2%, 57.7%, 0%, 15.7%)
CIE-LABlab(47.47, 41.35, -59.99)
CIE-LCHlch(47.47, 72.86, 304.58°)
OKLaboklab(56.45% 0.0626 -0.1711)
OKLCHoklch(56.45% 0.182 290.1)
XYZxyz(23.7491, 16.3807, 66.1873)
Luminance0.1638 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BD7 #BAD75B
analogous
#5B7CD7 #785BD7 #B65BD7
triadic
#785BD7 #D7785B #5BD778
tetradic
#785BD7 #D75B7C #BAD75B #5BD7B6
square
#785BD7 #D75B7C #BAD75B #5BD7B6
split-complementary
#785BD7 #D7B65B #7CD75B
monochromatic
#3E2494 #5330C5 #785BD7 #A08CE3 #C9BDEF

Accessibility & contrast

On white

4.91
#785BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#785BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785BD7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BD7#FFFFFF#000000##FFFFFF
##785BD71.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073DB
Deuteranopia (green-blind)
#0D6ED4
Tritanopia (blue-blind)
#5C7790
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785bd7;
/* rgb */ color: rgb(120, 91, 215);
/* oklch */ color: oklch(56.4% 0.182 290.1);
Tailwind
colors: {
  custom: {
    50: '#a58ae4',
    500: '#785bd7',
    950: '#000000',
  },
}
SCSS
$custom: #785bd7;
$custom-light: #a58ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#785bd7",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 215
  },
  "hsl": {
    "h": 254.032,
    "s": 60.784,
    "l": 60
  },
  "oklch": {
    "l": 0.56445,
    "c": 0.18215,
    "h": 290.1
  },
  "luminance": 0.16382
}

Semantic roles & 50–950 ramp

primary
#785BD7
secondary
#D4DFAF
accent
#E444BE
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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