#785EF6#785EF6

#785EF6 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.2% C 0.217 H 285.5°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#785EF6
RGBrgb(120, 94, 246)
HSLhsl(250, 89%, 67%)
HSVhsv(250, 62%, 96%)
CMYKcmyk(51.2%, 61.8%, 0%, 3.5%)
CIE-LABlab(50.28, 48.51, -72.92)
CIE-LCHlch(50.28, 87.58, 303.63°)
OKLaboklab(59.18% 0.058 -0.2091)
OKLCHoklch(59.18% 0.217 285.5)
XYZxyz(28.3780, 18.6508, 89.2756)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EF6 #DCF65E
analogous
#5E90F6 #785EF6 #C45EF6
triadic
#785EF6 #F6785E #5EF678
tetradic
#785EF6 #F65E90 #DCF65E #5EF6C4
square
#785EF6 #F65E90 #DCF65E #5EF6C4
split-complementary
#785EF6 #F6C45E #90F65E
monochromatic
#2D0CCE #4724F3 #785EF6 #A998F9 #D9D2FC

Accessibility & contrast

On white

4.44
#785EF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#785EF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785EF6
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EF6#FFFFFF#000000##000000
##785EF61.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#4783A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #785ef6;
/* rgb */ color: rgb(120, 94, 246);
/* oklch */ color: oklch(59.2% 0.217 285.5);
Tailwind
colors: {
  custom: {
    50: '#a98dfa',
    500: '#785ef6',
    950: '#000000',
  },
}
SCSS
$custom: #785ef6;
$custom-light: #a98dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#785ef6",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 246
  },
  "hsl": {
    "h": 250.263,
    "s": 89.412,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59181,
    "c": 0.21699,
    "h": 285.5
  },
  "luminance": 0.18652
}

Semantic roles & 50–950 ramp

primary
#785EF6
secondary
#E8F0BF
accent
#E600BE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785EF6

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

Preview Lab → · Contrast checker → · Palette generator →

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