#785BF5#785BF5

#785BF5 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.6% C 0.219 H 286.1°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#785BF5
RGBrgb(120, 91, 245)
HSLhsl(251, 89%, 66%)
HSVhsv(251, 63%, 96%)
CMYKcmyk(51%, 62.9%, 0%, 3.9%)
CIE-LABlab(49.58, 49.89, -73.50)
CIE-LCHlch(49.58, 88.83, 304.17°)
OKLaboklab(58.65% 0.0609 -0.2108)
OKLCHoklch(58.65% 0.219 286.1)
XYZxyz(27.9633, 18.0664, 88.3822)
Luminance0.1807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BF5 #D8F55B
analogous
#5B8BF5 #785BF5 #C55BF5
triadic
#785BF5 #F5785B #5BF578
tetradic
#785BF5 #F55B8B #D8F55B #5BF5C5
square
#785BF5 #F55B8B #D8F55B #5BF5C5
split-complementary
#785BF5 #F5C55B #8BF55B
monochromatic
#300CC9 #4921F1 #785BF5 #A795F9 #D7CEFC

Accessibility & contrast

On white

4.55
#785BF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#785BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785BF5
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BF5#FFFFFF#000000##000000
##785BF51.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFA
Deuteranopia (green-blind)
#0071F2
Tritanopia (blue-blind)
#4880A0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #785bf5;
/* rgb */ color: rgb(120, 91, 245);
/* oklch */ color: oklch(58.6% 0.219 286.1);
Tailwind
colors: {
  custom: {
    50: '#a98bf9',
    500: '#785bf5',
    950: '#000000',
  },
}
SCSS
$custom: #785bf5;
$custom-light: #a98bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#785bf5",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 245
  },
  "hsl": {
    "h": 251.299,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58649,
    "c": 0.21944,
    "h": 286.1
  },
  "luminance": 0.18068
}

Semantic roles & 50–950 ramp

primary
#785BF5
secondary
#E6EFBC
accent
#E500BA
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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