#785BB5#785BB5

#785BB5 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 54.2% C 0.138 H 296.4°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#785BB5
RGBrgb(120, 91, 181)
HSLhsl(259, 38%, 53%)
HSVhsv(259, 50%, 71%)
CMYKcmyk(33.7%, 49.7%, 0%, 29%)
CIE-LABlab(45.37, 31.98, -43.73)
CIE-LCHlch(45.37, 54.18, 306.18°)
OKLaboklab(54.22% 0.0612 -0.1233)
OKLCHoklch(54.22% 0.138 296.4)
XYZxyz(19.8252, 14.8112, 45.5214)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BB5 #98B55B
analogous
#5B6BB5 #785BB5 #A55BB5
triadic
#785BB5 #B5785B #5BB578
tetradic
#785BB5 #B55B6B #98B55B #5BB5A5
square
#785BB5 #B55B6B #98B55B #5BB5A5
split-complementary
#785BB5 #B5A55B #6BB55B
monochromatic
#412F67 #5B4291 #785BB5 #9B85C8 #BDAFDB

Accessibility & contrast

On white

5.30
#785BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#785BB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785BB5
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BB5#FFFFFF#000000##FFFFFF
##785BB51.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B6CB8
Deuteranopia (green-blind)
#426AB3
Tritanopia (blue-blind)
#6A6C7F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #785bb5;
/* rgb */ color: rgb(120, 91, 181);
/* oklch */ color: oklch(54.2% 0.138 296.4);
Tailwind
colors: {
  custom: {
    50: '#a28acc',
    500: '#785bb5',
    950: '#000000',
  },
}
SCSS
$custom: #785bb5;
$custom-light: #a28acc;
$custom-dark: #000000;
JSON
{
  "hex": "#785bb5",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 181
  },
  "hsl": {
    "h": 259.333,
    "s": 37.815,
    "l": 53.333
  },
  "oklch": {
    "l": 0.54219,
    "c": 0.13768,
    "h": 296.4
  },
  "luminance": 0.14811
}

Semantic roles & 50–950 ramp

primary
#785BB5
secondary
#BDC9A3
accent
#CE5AA8
background
#FAF8FC
surface
#F4F0F9
border
#CECBD2
text
#0F0C13
muted
#7F7D82

Preview Lab

Preview with #785BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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