#785DB5#785DB5

#785DB5 is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.6% C 0.135 H 295.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#785DB5
RGBrgb(120, 93, 181)
HSLhsl(258, 37%, 54%)
HSVhsv(258, 49%, 71%)
CMYKcmyk(33.7%, 48.6%, 0%, 29%)
CIE-LABlab(45.85, 30.80, -42.97)
CIE-LCHlch(45.85, 52.87, 305.63°)
OKLaboklab(54.57% 0.0585 -0.1211)
OKLCHoklch(54.57% 0.135 295.8)
XYZxyz(19.9985, 15.1577, 45.5792)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DB5 #9AB55D
analogous
#5D6EB5 #785DB5 #A45DB5
triadic
#785DB5 #B5785D #5DB578
tetradic
#785DB5 #B55D6E #9AB55D #5DB5A4
square
#785DB5 #B55D6E #9AB55D #5DB5A4
split-complementary
#785DB5 #B5A45D #6EB55D
monochromatic
#413068 #5B4392 #785DB5 #9B87C8 #BEB1DB

Accessibility & contrast

On white

5.21
#785DB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#785DB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DB5
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DB5#FFFFFF#000000##FFFFFF
##785DB51.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F6DB8
Deuteranopia (green-blind)
#446BB3
Tritanopia (blue-blind)
#6A6E80
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #785db5;
/* rgb */ color: rgb(120, 93, 181);
/* oklch */ color: oklch(54.6% 0.135 295.8);
Tailwind
colors: {
  custom: {
    50: '#a28bcb',
    500: '#785db5',
    950: '#000000',
  },
}
SCSS
$custom: #785db5;
$custom-light: #a28bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#785db5",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 181
  },
  "hsl": {
    "h": 258.409,
    "s": 37.288,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54574,
    "c": 0.13451,
    "h": 295.8
  },
  "luminance": 0.15158
}

Semantic roles & 50–950 ramp

primary
#785DB5
secondary
#BECAA4
accent
#CD5BAA
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #785DB5

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

Preview Lab → · Contrast checker → · Palette generator →

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