#785DB3#785DB3

#785DB3 is a mid, vivid violet. Relative luminance 0.151; OKLCH L 54.5% C 0.132 H 296.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#785DB3
RGBrgb(120, 93, 179)
HSLhsl(259, 36%, 53%)
HSVhsv(259, 48%, 70%)
CMYKcmyk(33%, 48%, 0%, 29.8%)
CIE-LABlab(45.74, 30.26, -41.98)
CIE-LCHlch(45.74, 51.75, 305.78°)
OKLaboklab(54.46% 0.0583 -0.1182)
OKLCHoklch(54.46% 0.132 296.2)
XYZxyz(19.7947, 15.0762, 44.5062)
Luminance0.1508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DB3 #98B35D
analogous
#5D6DB3 #785DB3 #A35DB3
triadic
#785DB3 #B3785D #5DB378
tetradic
#785DB3 #B35D6D #98B35D #5DB3A3
square
#785DB3 #B35D6D #98B35D #5DB3A3
split-complementary
#785DB3 #B3A35D #6DB35D
monochromatic
#413066 #5B438F #785DB3 #9B87C7 #BDB0DA

Accessibility & contrast

On white

5.23
#785DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#785DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DB3
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DB3#FFFFFF#000000##FFFFFF
##785DB31.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#406DB6
Deuteranopia (green-blind)
#466BB1
Tritanopia (blue-blind)
#6B6D7F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #785db3;
/* rgb */ color: rgb(120, 93, 179);
/* oklch */ color: oklch(54.5% 0.132 296.2);
Tailwind
colors: {
  custom: {
    50: '#a28bca',
    500: '#785db3',
    950: '#000000',
  },
}
SCSS
$custom: #785db3;
$custom-light: #a28bca;
$custom-dark: #000000;
JSON
{
  "hex": "#785db3",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 179
  },
  "hsl": {
    "h": 258.837,
    "s": 36.134,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54455,
    "c": 0.1318,
    "h": 296.2
  },
  "luminance": 0.15076
}

Semantic roles & 50–950 ramp

primary
#785DB3
secondary
#BDC8A3
accent
#CC5CA9
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #785DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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