#785BCB#785BCB

#785BCB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.6% C 0.167 H 292.0°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#785BCB
RGBrgb(120, 91, 203)
HSLhsl(256, 52%, 58%)
HSVhsv(256, 55%, 80%)
CMYKcmyk(40.9%, 55.2%, 0%, 20.4%)
CIE-LABlab(46.69, 37.99, -54.37)
CIE-LCHlch(46.69, 66.33, 304.94°)
OKLaboklab(55.62% 0.0625 -0.1545)
OKLCHoklch(55.62% 0.167 292)
XYZxyz(22.2634, 15.7864, 58.3624)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BCB #AECB5B
analogous
#5B76CB #785BCB #B05BCB
triadic
#785BCB #CB785B #5BCB78
tetradic
#785BCB #CB5B76 #AECB5B #5BCBB0
square
#785BCB #CB5B76 #AECB5B #5BCBB0
split-complementary
#785BCB #CBB05B #76CB5B
monochromatic
#402982 #5738B1 #785BCB #9E89DA #C5B8E8

Accessibility & contrast

On white

5.05
#785BCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#785BCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785BCB
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BCB#FFFFFF#000000##FFFFFF
##785BCB1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2270CF
Deuteranopia (green-blind)
#2A6CC9
Tritanopia (blue-blind)
#62738A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #785bcb;
/* rgb */ color: rgb(120, 91, 203);
/* oklch */ color: oklch(55.6% 0.167 292.0);
Tailwind
colors: {
  custom: {
    50: '#a48adb',
    500: '#785bcb',
    950: '#000000',
  },
}
SCSS
$custom: #785bcb;
$custom-light: #a48adb;
$custom-dark: #000000;
JSON
{
  "hex": "#785bcb",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 203
  },
  "hsl": {
    "h": 255.536,
    "s": 51.852,
    "l": 57.647
  },
  "oklch": {
    "l": 0.55623,
    "c": 0.16671,
    "h": 292
  },
  "luminance": 0.15787
}

Semantic roles & 50–950 ramp

primary
#785BCB
secondary
#CCD7AA
accent
#DB4CB6
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785BCB

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

Preview Lab → · Contrast checker → · Palette generator →

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