#785FE5#785FE5

#785FE5 is a mid, vivid violet. Relative luminance 0.178; OKLCH L 58.1% C 0.195 H 287.3°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#785FE5
RGBrgb(120, 95, 229)
HSLhsl(251, 72%, 64%)
HSVhsv(251, 59%, 90%)
CMYKcmyk(47.6%, 58.5%, 0%, 10.2%)
CIE-LABlab(49.29, 43.04, -64.98)
CIE-LCHlch(49.29, 77.94, 303.52°)
OKLaboklab(58.08% 0.0579 -0.1857)
OKLCHoklch(58.08% 0.195 287.3)
XYZxyz(25.9767, 17.8335, 76.1870)
Luminance0.1784 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FE5 #CCE55F
analogous
#5F89E5 #785FE5 #BB5FE5
triadic
#785FE5 #E5785F #5FE578
tetradic
#785FE5 #E55F89 #CCE55F #5FE5BB
square
#785FE5 #E55F89 #CCE55F #5FE5BB
split-complementary
#785FE5 #E5BB5F #89E55F
monochromatic
#371CAD #4C2ADC #785FE5 #A494EE #D1C8F6

Accessibility & contrast

On white

4.60
#785FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#785FE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785FE5
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FE5#FFFFFF#000000##FFFFFF
##785FE51.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078E9
Deuteranopia (green-blind)
#0072E2
Tritanopia (blue-blind)
#537E99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785fe5;
/* rgb */ color: rgb(120, 95, 229);
/* oklch */ color: oklch(58.1% 0.195 287.3);
Tailwind
colors: {
  custom: {
    50: '#a68dee',
    500: '#785fe5',
    950: '#000000',
  },
}
SCSS
$custom: #785fe5;
$custom-light: #a68dee;
$custom-dark: #000000;
JSON
{
  "hex": "#785fe5",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 229
  },
  "hsl": {
    "h": 251.194,
    "s": 72.043,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58084,
    "c": 0.19454,
    "h": 287.3
  },
  "luminance": 0.17835
}

Semantic roles & 50–950 ramp

primary
#785FE5
secondary
#DFE8B8
accent
#D411B0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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