#785BE5#785BE5

#785BE5 is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.4% C 0.200 H 288.1°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#785BE5
RGBrgb(120, 91, 229)
HSLhsl(253, 73%, 63%)
HSVhsv(253, 60%, 90%)
CMYKcmyk(47.6%, 60.3%, 0%, 10.2%)
CIE-LABlab(48.42, 45.32, -66.39)
CIE-LCHlch(48.42, 80.38, 304.32°)
OKLaboklab(57.45% 0.0621 -0.1899)
OKLCHoklch(57.45% 0.2 288.1)
XYZxyz(25.6256, 17.1313, 76.0700)
Luminance0.1713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BE5 #C8E55B
analogous
#5B83E5 #785BE5 #BD5BE5
triadic
#785BE5 #E5785B #5BE578
tetradic
#785BE5 #E55B83 #C8E55B #5BE5BD
square
#785BE5 #E55B83 #C8E55B #5BE5BD
split-complementary
#785BE5 #E5BD5B #83E55B
monochromatic
#391BAB #4D26DD #785BE5 #A390ED #CFC5F6

Accessibility & contrast

On white

4.74
#785BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#785BE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785BE5
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BE5#FFFFFF#000000##FFFFFF
##785BE51.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E9
Deuteranopia (green-blind)
#006FE2
Tritanopia (blue-blind)
#547B97
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #785be5;
/* rgb */ color: rgb(120, 91, 229);
/* oklch */ color: oklch(57.4% 0.200 288.1);
Tailwind
colors: {
  custom: {
    50: '#a78bee',
    500: '#785be5',
    950: '#000000',
  },
}
SCSS
$custom: #785be5;
$custom-light: #a78bee;
$custom-dark: #000000;
JSON
{
  "hex": "#785be5",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 252.609,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57448,
    "c": 0.19978,
    "h": 288.1
  },
  "luminance": 0.17132
}

Semantic roles & 50–950 ramp

primary
#785BE5
secondary
#DCE7B5
accent
#D511AC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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