#785CE3#785CE3

#785CE3 is a mid, vivid violet. Relative luminance 0.172; OKLCH L 57.5% C 0.196 H 288.2°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#785CE3
RGBrgb(120, 92, 227)
HSLhsl(252, 71%, 63%)
HSVhsv(252, 59%, 89%)
CMYKcmyk(47.1%, 59.5%, 0%, 11%)
CIE-LABlab(48.50, 44.18, -65.13)
CIE-LCHlch(48.50, 78.70, 304.15°)
OKLaboklab(57.46% 0.0611 -0.1862)
OKLCHoklch(57.46% 0.196 288.2)
XYZxyz(25.4340, 17.1924, 74.6365)
Luminance0.1719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CE3 #C7E35C
analogous
#5C84E3 #785CE3 #BB5CE3
triadic
#785CE3 #E3785C #5CE378
tetradic
#785CE3 #E35C84 #C7E35C #5CE3BB
square
#785CE3 #E35C84 #C7E35C #5CE3BB
split-complementary
#785CE3 #E3BB5C #84E35C
monochromatic
#3A1DA8 #4D28DA #785CE3 #A390EC #CFC4F5

Accessibility & contrast

On white

4.73
#785CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#785CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CE3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CE3#FFFFFF#000000##FFFFFF
##785CE31.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076E7
Deuteranopia (green-blind)
#0070E0
Tritanopia (blue-blind)
#557B97
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #785ce3;
/* rgb */ color: rgb(120, 92, 227);
/* oklch */ color: oklch(57.5% 0.196 288.2);
Tailwind
colors: {
  custom: {
    50: '#a68bed',
    500: '#785ce3',
    950: '#000000',
  },
}
SCSS
$custom: #785ce3;
$custom-light: #a68bed;
$custom-dark: #000000;
JSON
{
  "hex": "#785ce3",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 252.444,
    "s": 70.681,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5746,
    "c": 0.19598,
    "h": 288.2
  },
  "luminance": 0.17193
}

Semantic roles & 50–950 ramp

primary
#785CE3
secondary
#DCE6B5
accent
#D313AB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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