#785EF1#785EF1

#785EF1 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.8% C 0.211 H 286.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#785EF1
RGBrgb(120, 94, 241)
HSLhsl(251, 84%, 66%)
HSVhsv(251, 61%, 95%)
CMYKcmyk(50.2%, 61%, 0%, 5.5%)
CIE-LABlab(49.92, 47.07, -70.72)
CIE-LCHlch(49.92, 84.95, 303.65°)
OKLaboklab(58.8% 0.0583 -0.2026)
OKLCHoklch(58.8% 0.211 286.1)
XYZxyz(27.6209, 18.3480, 85.2882)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EF1 #D7F15E
analogous
#5E8DF1 #785EF1 #C15EF1
triadic
#785EF1 #F1785E #5EF178
tetradic
#785EF1 #F15E8D #D7F15E #5EF1C1
square
#785EF1 #F15E8D #D7F15E #5EF1C1
split-complementary
#785EF1 #F1C15E #8DF15E
monochromatic
#3111C4 #4926EC #785EF1 #A796F6 #D6CFFB

Accessibility & contrast

On white

4.50
#785EF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#785EF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785EF1
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EF1#FFFFFF#000000##000000
##785EF11.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF6
Deuteranopia (green-blind)
#0072EE
Tritanopia (blue-blind)
#4B819F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #785ef1;
/* rgb */ color: rgb(120, 94, 241);
/* oklch */ color: oklch(58.8% 0.211 286.1);
Tailwind
colors: {
  custom: {
    50: '#a88df7',
    500: '#785ef1',
    950: '#000000',
  },
}
SCSS
$custom: #785ef1;
$custom-light: #a88df7;
$custom-dark: #000000;
JSON
{
  "hex": "#785ef1",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 241
  },
  "hsl": {
    "h": 250.612,
    "s": 84,
    "l": 65.686
  },
  "oklch": {
    "l": 0.58805,
    "c": 0.21084,
    "h": 286.1
  },
  "luminance": 0.18349
}

Semantic roles & 50–950 ramp

primary
#785EF1
secondary
#E5EEBD
accent
#E005BA
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785EF1

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

Preview Lab → · Contrast checker → · Palette generator →

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