#785DF5#785DF5

#785DF5 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.0% C 0.217 H 285.8°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#785DF5
RGBrgb(120, 93, 245)
HSLhsl(251, 88%, 66%)
HSVhsv(251, 62%, 96%)
CMYKcmyk(51%, 62%, 0%, 3.9%)
CIE-LABlab(49.99, 48.78, -72.83)
CIE-LCHlch(49.99, 87.65, 303.81°)
OKLaboklab(58.95% 0.059 -0.2088)
OKLCHoklch(58.95% 0.217 285.8)
XYZxyz(28.1366, 18.4129, 88.4400)
Luminance0.1841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DF5 #DAF55D
analogous
#5D8EF5 #785DF5 #C45DF5
triadic
#785DF5 #F5785D #5DF578
tetradic
#785DF5 #F55D8E #DAF55D #5DF5C4
square
#785DF5 #F55D8E #DAF55D #5DF5C4
split-complementary
#785DF5 #F5C45D #8EF55D
monochromatic
#2E0DCB #4823F1 #785DF5 #A897F9 #D8D0FC

Accessibility & contrast

On white

4.48
#785DF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#785DF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785DF5
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DF5#FFFFFF#000000##000000
##785DF51.004.484.684.68
#FFFFFF4.481.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #785df5;
/* rgb */ color: rgb(120, 93, 245);
/* oklch */ color: oklch(59.0% 0.217 285.8);
Tailwind
colors: {
  custom: {
    50: '#a88cf9',
    500: '#785df5',
    950: '#000000',
  },
}
SCSS
$custom: #785df5;
$custom-light: #a88cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#785df5",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 245
  },
  "hsl": {
    "h": 250.658,
    "s": 88.372,
    "l": 66.275
  },
  "oklch": {
    "l": 0.58952,
    "c": 0.21699,
    "h": 285.8
  },
  "luminance": 0.18414
}

Semantic roles & 50–950 ramp

primary
#785DF5
secondary
#E7F0BE
accent
#E501BC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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