#785BD5#785BD5

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

Color values

HEX#785BD5
RGBrgb(120, 91, 213)
HSLhsl(254, 59%, 60%)
HSVhsv(254, 57%, 84%)
CMYKcmyk(43.7%, 57.3%, 0%, 16.5%)
CIE-LABlab(47.34, 40.78, -59.06)
CIE-LCHlch(47.34, 71.78, 304.63°)
OKLaboklab(56.31% 0.0626 -0.1683)
OKLCHoklch(56.31% 0.18 290.4)
XYZxyz(23.4937, 16.2785, 64.8421)
Luminance0.1628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BD5 #B8D55B
analogous
#5B7BD5 #785BD5 #B55BD5
triadic
#785BD5 #D5785B #5BD578
tetradic
#785BD5 #D55B7B #B8D55B #5BD5B5
square
#785BD5 #D55B7B #B8D55B #5BD5B5
split-complementary
#785BD5 #D5B55B #7BD55B
monochromatic
#3F2591 #5432C1 #785BD5 #A08CE1 #C8BCEE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##785BD5#FFFFFF#000000##FFFFFF
##785BD51.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)
#0872D9
Deuteranopia (green-blind)
#156ED2
Tritanopia (blue-blind)
#5D768F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #785bd5;
/* rgb */ color: rgb(120, 91, 213);
/* oklch */ color: oklch(56.3% 0.180 290.4);
Tailwind
colors: {
  custom: {
    50: '#a58ae3',
    500: '#785bd5',
    950: '#000000',
  },
}
SCSS
$custom: #785bd5;
$custom-light: #a58ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#785bd5",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 213
  },
  "hsl": {
    "h": 254.262,
    "s": 59.223,
    "l": 59.608
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.1796,
    "h": 290.4
  },
  "luminance": 0.16279
}

Semantic roles & 50–950 ramp

primary
#785BD5
secondary
#D2DEAE
accent
#E245BD
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #785BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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