#785DB2#785DB2

#785DB2 is a mid, vivid violet. Relative luminance 0.150; OKLCH L 54.4% C 0.130 H 296.5°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#785DB2
RGBrgb(120, 93, 178)
HSLhsl(259, 36%, 53%)
HSVhsv(259, 48%, 70%)
CMYKcmyk(32.6%, 47.8%, 0%, 30.2%)
CIE-LABlab(45.68, 29.99, -41.49)
CIE-LCHlch(45.68, 51.19, 305.87°)
OKLaboklab(54.4% 0.0581 -0.1168)
OKLCHoklch(54.4% 0.13 296.5)
XYZxyz(19.6940, 15.0359, 43.9755)
Luminance0.1504 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DB2 #97B25D
analogous
#5D6CB2 #785DB2 #A25DB2
triadic
#785DB2 #B2785D #5DB278
tetradic
#785DB2 #B25D6C #97B25D #5DB2A2
square
#785DB2 #B25D6C #97B25D #5DB2A2
split-complementary
#785DB2 #B2A25D #6CB25D
monochromatic
#413065 #5B448E #785DB2 #9B86C6 #BDB0D9

Accessibility & contrast

On white

5.24
#785DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#785DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DB2
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DB2#FFFFFF#000000##FFFFFF
##785DB21.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#416DB5
Deuteranopia (green-blind)
#466BB0
Tritanopia (blue-blind)
#6B6D7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #785db2;
/* rgb */ color: rgb(120, 93, 178);
/* oklch */ color: oklch(54.4% 0.130 296.5);
Tailwind
colors: {
  custom: {
    50: '#a18bc9',
    500: '#785db2',
    950: '#000000',
  },
}
SCSS
$custom: #785db2;
$custom-light: #a18bc9;
$custom-dark: #000000;
JSON
{
  "hex": "#785db2",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 178
  },
  "hsl": {
    "h": 259.059,
    "s": 35.565,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54395,
    "c": 0.13044,
    "h": 296.5
  },
  "luminance": 0.15036
}

Semantic roles & 50–950 ramp

primary
#785DB2
secondary
#BCC8A3
accent
#CC5CA8
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #785DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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