#785DB8#785DB8

#785DB8 is a mid, vivid violet. Relative luminance 0.153; OKLCH L 54.8% C 0.139 H 295.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#785DB8
RGBrgb(120, 93, 184)
HSLhsl(258, 39%, 54%)
HSVhsv(258, 49%, 72%)
CMYKcmyk(34.8%, 49.5%, 0%, 27.8%)
CIE-LABlab(46.02, 31.60, -44.46)
CIE-LCHlch(46.02, 54.54, 305.41°)
OKLaboklab(54.76% 0.0588 -0.1255)
OKLCHoklch(54.76% 0.139 295.1)
XYZxyz(20.3096, 15.2821, 47.2178)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DB8 #9DB85D
analogous
#5D70B8 #785DB8 #A65DB8
triadic
#785DB8 #B8785D #5DB878
tetradic
#785DB8 #B85D70 #9DB85D #5DB8A6
square
#785DB8 #B85D70 #9DB85D #5DB8A6
split-complementary
#785DB8 #B8A65D #70B85D
monochromatic
#412F6B #5B4296 #785DB8 #9B88CB #BFB2DD

Accessibility & contrast

On white

5.18
#785DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#785DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DB8
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DB8#FFFFFF#000000##FFFFFF
##785DB81.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6EBB
Deuteranopia (green-blind)
#426CB6
Tritanopia (blue-blind)
#696F82
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #785db8;
/* rgb */ color: rgb(120, 93, 184);
/* oklch */ color: oklch(54.8% 0.139 295.1);
Tailwind
colors: {
  custom: {
    50: '#a28bce',
    500: '#785db8',
    950: '#000000',
  },
}
SCSS
$custom: #785db8;
$custom-light: #a28bce;
$custom-dark: #000000;
JSON
{
  "hex": "#785db8",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 184
  },
  "hsl": {
    "h": 257.802,
    "s": 39.056,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54755,
    "c": 0.13856,
    "h": 295.1
  },
  "luminance": 0.15282
}

Semantic roles & 50–950 ramp

primary
#785DB8
secondary
#C0CCA5
accent
#CF59AC
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #785DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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