#785FD2#785FD2

#785FD2 is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.8% C 0.170 H 289.9°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#785FD2
RGBrgb(120, 95, 210)
HSLhsl(253, 56%, 60%)
HSVhsv(253, 55%, 82%)
CMYKcmyk(42.9%, 54.8%, 0%, 17.6%)
CIE-LABlab(48.04, 37.62, -56.21)
CIE-LCHlch(48.04, 67.64, 303.79°)
OKLaboklab(56.77% 0.0579 -0.1599)
OKLCHoklch(56.77% 0.17 289.9)
XYZxyz(23.4676, 16.8298, 62.9723)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FD2 #B9D25F
analogous
#5F80D2 #785FD2 #B15FD2
triadic
#785FD2 #D2785F #5FD278
tetradic
#785FD2 #D25F80 #B9D25F #5FD2B1
square
#785FD2 #D25F80 #B9D25F #5FD2B1
split-complementary
#785FD2 #D2B15F #80D25F
monochromatic
#3E288F #5336BE #785FD2 #A08FDF #C9BFED

Accessibility & contrast

On white

4.81
#785FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#785FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785FD2
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FD2#FFFFFF#000000##FFFFFF
##785FD21.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2374D6
Deuteranopia (green-blind)
#276FCF
Tritanopia (blue-blind)
#5E788F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #785fd2;
/* rgb */ color: rgb(120, 95, 210);
/* oklch */ color: oklch(56.8% 0.170 289.9);
Tailwind
colors: {
  custom: {
    50: '#a48de0',
    500: '#785fd2',
    950: '#000000',
  },
}
SCSS
$custom: #785fd2;
$custom-light: #a48de0;
$custom-dark: #000000;
JSON
{
  "hex": "#785fd2",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 210
  },
  "hsl": {
    "h": 253.043,
    "s": 56.098,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56765,
    "c": 0.1701,
    "h": 289.9
  },
  "luminance": 0.16831
}

Semantic roles & 50–950 ramp

primary
#785FD2
secondary
#D3DDB0
accent
#DF48BF
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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