#785FBB#785FBB

#785FBB is a mid, vivid violet. Relative luminance 0.158; OKLCH L 55.3% C 0.139 H 293.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#785FBB
RGBrgb(120, 95, 187)
HSLhsl(256, 40%, 55%)
HSVhsv(256, 49%, 73%)
CMYKcmyk(35.8%, 49.2%, 0%, 26.7%)
CIE-LABlab(46.66, 31.23, -45.17)
CIE-LCHlch(46.66, 54.92, 304.66°)
OKLaboklab(55.29% 0.0564 -0.1275)
OKLCHoklch(55.29% 0.139 293.9)
XYZxyz(20.8053, 15.7649, 48.9509)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FBB #A2BB5F
analogous
#5F74BB #785FBB #A65FBB
triadic
#785FBB #BB785F #5FBB78
tetradic
#785FBB #BB5F74 #A2BB5F #5FBBA6
square
#785FBB #BB5F74 #A2BB5F #5FBBA6
split-complementary
#785FBB #BBA65F #74BB5F
monochromatic
#413070 #5A429B #785FBB #9C8ACD #C0B5E0

Accessibility & contrast

On white

5.06
#785FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#785FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785FBB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FBB#FFFFFF#000000##FFFFFF
##785FBB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D70BE
Deuteranopia (green-blind)
#426DB9
Tritanopia (blue-blind)
#687184
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #785fbb;
/* rgb */ color: rgb(120, 95, 187);
/* oklch */ color: oklch(55.3% 0.139 293.9);
Tailwind
colors: {
  custom: {
    50: '#a28dd0',
    500: '#785fbb',
    950: '#000000',
  },
}
SCSS
$custom: #785fbb;
$custom-light: #a28dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#785fbb",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 187
  },
  "hsl": {
    "h": 256.304,
    "s": 40.351,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55293,
    "c": 0.13948,
    "h": 293.9
  },
  "luminance": 0.15765
}

Semantic roles & 50–950 ramp

primary
#785FBB
secondary
#C4CEA8
accent
#D058AF
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #785FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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