#785CBB#785CBB

#785CBB is a mid, vivid violet. Relative luminance 0.152; OKLCH L 54.8% C 0.144 H 294.8°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#785CBB
RGBrgb(120, 92, 187)
HSLhsl(258, 41%, 55%)
HSVhsv(258, 51%, 73%)
CMYKcmyk(35.8%, 50.8%, 0%, 26.7%)
CIE-LABlab(45.95, 33.01, -46.30)
CIE-LCHlch(45.95, 56.86, 305.48°)
OKLaboklab(54.76% 0.0604 -0.1309)
OKLCHoklch(54.76% 0.144 294.8)
XYZxyz(20.5402, 15.2348, 48.8625)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CBB #9FBB5C
analogous
#5C70BB #785CBB #A85CBB
triadic
#785CBB #BB785C #5CBB78
tetradic
#785CBB #BB5C70 #9FBB5C #5CBBA8
square
#785CBB #BB5C70 #9FBB5C #5CBBA8
split-complementary
#785CBB #BBA85C #70BB5C
monochromatic
#412E6F #5B409A #785CBB #9C87CD #C0B2DF

Accessibility & contrast

On white

5.19
#785CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#785CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CBB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CBB#FFFFFF#000000##FFFFFF
##785CBB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#386EBE
Deuteranopia (green-blind)
#3E6BB9
Tritanopia (blue-blind)
#686F83
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #785cbb;
/* rgb */ color: rgb(120, 92, 187);
/* oklch */ color: oklch(54.8% 0.144 294.8);
Tailwind
colors: {
  custom: {
    50: '#a28bd0',
    500: '#785cbb',
    950: '#000000',
  },
}
SCSS
$custom: #785cbb;
$custom-light: #a28bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#785cbb",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 187
  },
  "hsl": {
    "h": 257.684,
    "s": 41.126,
    "l": 54.706
  },
  "oklch": {
    "l": 0.54763,
    "c": 0.14414,
    "h": 294.8
  },
  "luminance": 0.15235
}

Semantic roles & 50–950 ramp

primary
#785CBB
secondary
#C2CDA5
accent
#D157AD
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #785CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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