#785EE5#785EE5

#785EE5 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 57.9% C 0.196 H 287.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#785EE5
RGBrgb(120, 94, 229)
HSLhsl(252, 72%, 63%)
HSVhsv(252, 59%, 90%)
CMYKcmyk(47.6%, 59%, 0%, 10.2%)
CIE-LABlab(49.07, 43.61, -65.34)
CIE-LCHlch(49.07, 78.55, 303.72°)
OKLaboklab(57.92% 0.0589 -0.1868)
OKLCHoklch(57.92% 0.196 287.5)
XYZxyz(25.8872, 17.6545, 76.1572)
Luminance0.1766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EE5 #CBE55E
analogous
#5E87E5 #785EE5 #BC5EE5
triadic
#785EE5 #E5785E #5EE578
tetradic
#785EE5 #E55E87 #CBE55E #5EE5BC
square
#785EE5 #E55E87 #CBE55E #5EE5BC
split-complementary
#785EE5 #E5BC5E #87E55E
monochromatic
#381CAD #4C29DC #785EE5 #A493EE #D0C7F6

Accessibility & contrast

On white

4.63
#785EE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#785EE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785EE5
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EE5#FFFFFF#000000##FFFFFF
##785EE51.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#537D99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785ee5;
/* rgb */ color: rgb(120, 94, 229);
/* oklch */ color: oklch(57.9% 0.196 287.5);
Tailwind
colors: {
  custom: {
    50: '#a68dee',
    500: '#785ee5',
    950: '#000000',
  },
}
SCSS
$custom: #785ee5;
$custom-light: #a68dee;
$custom-dark: #000000;
JSON
{
  "hex": "#785ee5",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 229
  },
  "hsl": {
    "h": 251.556,
    "s": 72.193,
    "l": 63.333
  },
  "oklch": {
    "l": 0.57923,
    "c": 0.19586,
    "h": 287.5
  },
  "luminance": 0.17656
}

Semantic roles & 50–950 ramp

primary
#785EE5
secondary
#DEE7B7
accent
#D411AF
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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