#785BBB#785BBB

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

Color values

HEX#785BBB
RGBrgb(120, 91, 187)
HSLhsl(258, 41%, 55%)
HSVhsv(258, 51%, 73%)
CMYKcmyk(35.8%, 51.3%, 0%, 26.7%)
CIE-LABlab(45.72, 33.60, -46.68)
CIE-LCHlch(45.72, 57.51, 305.74°)
OKLaboklab(54.59% 0.0617 -0.132)
OKLCHoklch(54.59% 0.146 295.1)
XYZxyz(20.4542, 15.0627, 48.8338)
Luminance0.1506 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BBB #9EBB5B
analogous
#5B6EBB #785BBB #A85BBB
triadic
#785BBB #BB785B #5BBB78
tetradic
#785BBB #BB5B6E #9EBB5B #5BBBA8
square
#785BBB #BB5B6E #9EBB5B #5BBBA8
split-complementary
#785BBB #BBA85B #6EBB5B
monochromatic
#412E6E #5B4099 #785BBB #9C86CD #BFB2DF

Accessibility & contrast

On white

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

On black

4.01
#785BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##785BBB#FFFFFF#000000##FFFFFF
##785BBB1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366DBE
Deuteranopia (green-blind)
#3C6BB9
Tritanopia (blue-blind)
#686E82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #785bbb;
/* rgb */ color: rgb(120, 91, 187);
/* oklch */ color: oklch(54.6% 0.146 295.1);
Tailwind
colors: {
  custom: {
    50: '#a28ad0',
    500: '#785bbb',
    950: '#000000',
  },
}
SCSS
$custom: #785bbb;
$custom-light: #a28ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#785bbb",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 187
  },
  "hsl": {
    "h": 258.125,
    "s": 41.379,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54588,
    "c": 0.14569,
    "h": 295.1
  },
  "luminance": 0.15063
}

Semantic roles & 50–950 ramp

primary
#785BBB
secondary
#C1CDA5
accent
#D157AC
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C14
muted
#7F7D82

Preview Lab

Preview with #785BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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