#785EF5#785EF5

#785EF5 is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.1% C 0.216 H 285.6°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#785EF5
RGBrgb(120, 94, 245)
HSLhsl(250, 88%, 66%)
HSVhsv(250, 62%, 96%)
CMYKcmyk(51%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.20, 48.22, -72.48)
CIE-LCHlch(50.20, 87.06, 303.63°)
OKLaboklab(59.11% 0.0581 -0.2078)
OKLCHoklch(59.11% 0.216 285.6)
XYZxyz(28.2249, 18.5896, 88.4694)
Luminance0.1859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EF5 #DBF55E
analogous
#5E90F5 #785EF5 #C45EF5
triadic
#785EF5 #F5785E #5EF578
tetradic
#785EF5 #F55E90 #DBF55E #5EF5C4
square
#785EF5 #F55E90 #DBF55E #5EF5C4
split-complementary
#785EF5 #F5C45E #90F55E
monochromatic
#2E0DCC #4824F1 #785EF5 #A898F9 #D9D1FC

Accessibility & contrast

On white

4.45
#785EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#785EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785EF5
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EF5#FFFFFF#000000##000000
##785EF51.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0073F2
Tritanopia (blue-blind)
#4882A1
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #785ef5;
/* rgb */ color: rgb(120, 94, 245);
/* oklch */ color: oklch(59.1% 0.216 285.6);
Tailwind
colors: {
  custom: {
    50: '#a88df9',
    500: '#785ef5',
    950: '#000000',
  },
}
SCSS
$custom: #785ef5;
$custom-light: #a88df9;
$custom-dark: #000000;
JSON
{
  "hex": "#785ef5",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 250.331,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59105,
    "c": 0.21576,
    "h": 285.6
  },
  "luminance": 0.18591
}

Semantic roles & 50–950 ramp

primary
#785EF5
secondary
#E7F0BF
accent
#E501BE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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