#785CE5#785CE5

#785CE5 is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.6% C 0.198 H 287.9°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#785CE5
RGBrgb(120, 92, 229)
HSLhsl(252, 72%, 63%)
HSVhsv(252, 60%, 90%)
CMYKcmyk(47.6%, 59.8%, 0%, 10.2%)
CIE-LABlab(48.64, 44.75, -66.04)
CIE-LCHlch(48.64, 79.77, 304.12°)
OKLaboklab(57.61% 0.061 -0.1889)
OKLCHoklch(57.61% 0.198 287.9)
XYZxyz(25.7116, 17.3034, 76.0987)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CE5 #C9E55C
analogous
#5C84E5 #785CE5 #BD5CE5
triadic
#785CE5 #E5785C #5CE578
tetradic
#785CE5 #E55C84 #C9E55C #5CE5BD
square
#785CE5 #E55C84 #C9E55C #5CE5BD
split-complementary
#785CE5 #E5BD5C #84E55C
monochromatic
#391BAB #4C27DD #785CE5 #A491ED #CFC6F6

Accessibility & contrast

On white

4.71
#785CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#785CE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CE5
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CE5#FFFFFF#000000##FFFFFF
##785CE51.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#0070E2
Tritanopia (blue-blind)
#537C98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785ce5;
/* rgb */ color: rgb(120, 92, 229);
/* oklch */ color: oklch(57.6% 0.198 287.9);
Tailwind
colors: {
  custom: {
    50: '#a78bee',
    500: '#785ce5',
    950: '#000000',
  },
}
SCSS
$custom: #785ce5;
$custom-light: #a78bee;
$custom-dark: #000000;
JSON
{
  "hex": "#785ce5",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 252.263,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57605,
    "c": 0.19848,
    "h": 287.9
  },
  "luminance": 0.17305
}

Semantic roles & 50–950 ramp

primary
#785CE5
secondary
#DDE7B6
accent
#D511AD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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