#785CE6#785CE6

#785CE6 is a mid, vivid violet. Relative luminance 0.174; OKLCH L 57.7% C 0.200 H 287.8°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#785CE6
RGBrgb(120, 92, 230)
HSLhsl(252, 73%, 63%)
HSVhsv(252, 60%, 90%)
CMYKcmyk(47.8%, 60%, 0%, 9.8%)
CIE-LABlab(48.71, 45.04, -66.49)
CIE-LCHlch(48.71, 80.31, 304.11°)
OKLaboklab(57.68% 0.061 -0.1902)
OKLCHoklch(57.68% 0.2 287.8)
XYZxyz(25.8517, 17.3594, 76.8361)
Luminance0.1736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CE6 #CAE65C
analogous
#5C85E6 #785CE6 #BD5CE6
triadic
#785CE6 #E6785C #5CE678
tetradic
#785CE6 #E65C85 #CAE65C #5CE6BD
square
#785CE6 #E65C85 #CAE65C #5CE6BD
split-complementary
#785CE6 #E6BD5C #85E65C
monochromatic
#381BAD #4C27DE #785CE6 #A491EE #D0C6F6

Accessibility & contrast

On white

4.70
#785CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#785CE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CE6
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CE6#FFFFFF#000000##FFFFFF
##785CE61.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #785ce6;
/* rgb */ color: rgb(120, 92, 230);
/* oklch */ color: oklch(57.7% 0.200 287.8);
Tailwind
colors: {
  custom: {
    50: '#a78bef',
    500: '#785ce6',
    950: '#000000',
  },
}
SCSS
$custom: #785ce6;
$custom-light: #a78bef;
$custom-dark: #000000;
JSON
{
  "hex": "#785ce6",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 252.174,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57678,
    "c": 0.19973,
    "h": 287.8
  },
  "luminance": 0.17361
}

Semantic roles & 50–950 ramp

primary
#785CE6
secondary
#DEE8B6
accent
#D610AD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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