#785EE7#785EE7

#785EE7 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.1% C 0.198 H 287.3°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#785EE7
RGBrgb(120, 94, 231)
HSLhsl(251, 74%, 64%)
HSVhsv(251, 59%, 91%)
CMYKcmyk(48.1%, 59.3%, 0%, 9.4%)
CIE-LABlab(49.21, 44.19, -66.24)
CIE-LCHlch(49.21, 79.63, 303.71°)
OKLaboklab(58.07% 0.0589 -0.1894)
OKLCHoklch(58.07% 0.198 287.3)
XYZxyz(26.1680, 17.7668, 77.6363)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EE7 #CDE75E
analogous
#5E88E7 #785EE7 #BC5EE7
triadic
#785EE7 #E7785E #5EE778
tetradic
#785EE7 #E75E88 #CDE75E #5EE7BC
square
#785EE7 #E75E88 #CDE75E #5EE7BC
split-complementary
#785EE7 #E7BC5E #88E75E
monochromatic
#371AB0 #4B29DF #785EE7 #A593EF #D1C9F7

Accessibility & contrast

On white

4.61
#785EE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#785EE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785EE7
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EE7#FFFFFF#000000##FFFFFF
##785EE71.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#527E9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785ee7;
/* rgb */ color: rgb(120, 94, 231);
/* oklch */ color: oklch(58.1% 0.198 287.3);
Tailwind
colors: {
  custom: {
    50: '#a78def',
    500: '#785ee7',
    950: '#000000',
  },
}
SCSS
$custom: #785ee7;
$custom-light: #a78def;
$custom-dark: #000000;
JSON
{
  "hex": "#785ee7",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 231
  },
  "hsl": {
    "h": 251.387,
    "s": 74.054,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58068,
    "c": 0.19838,
    "h": 287.3
  },
  "luminance": 0.17768
}

Semantic roles & 50–950 ramp

primary
#785EE7
secondary
#DFE9B8
accent
#D60FB0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785EE7

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

Preview Lab → · Contrast checker → · Palette generator →

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