#785AB2#785AB2

#785AB2 is a mid, vivid violet. Relative luminance 0.145; OKLCH L 53.9% C 0.135 H 297.4°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#785AB2
RGBrgb(120, 90, 178)
HSLhsl(260, 36%, 53%)
HSVhsv(260, 49%, 70%)
CMYKcmyk(32.6%, 49.4%, 0%, 30.2%)
CIE-LABlab(44.97, 31.77, -42.62)
CIE-LCHlch(44.97, 53.16, 306.71°)
OKLaboklab(53.86% 0.0622 -0.1201)
OKLCHoklch(53.86% 0.135 297.4)
XYZxyz(19.4358, 14.5195, 43.8894)
Luminance0.1452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AB2 #94B25A
analogous
#5A68B2 #785AB2 #A45AB2
triadic
#785AB2 #B2785A #5AB278
tetradic
#785AB2 #B25A68 #94B25A #5AB2A4
square
#785AB2 #B25A68 #94B25A #5AB2A4
split-complementary
#785AB2 #B2A45A #68B25A
monochromatic
#402E63 #5B428D #785AB2 #9A84C5 #BCADD9

Accessibility & contrast

On white

5.38
#785AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#785AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785AB2
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AB2#FFFFFF#000000##FFFFFF
##785AB21.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C6BB5
Deuteranopia (green-blind)
#4369B0
Tritanopia (blue-blind)
#6B6B7E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #785ab2;
/* rgb */ color: rgb(120, 90, 178);
/* oklch */ color: oklch(53.9% 0.135 297.4);
Tailwind
colors: {
  custom: {
    50: '#a289c9',
    500: '#785ab2',
    950: '#000000',
  },
}
SCSS
$custom: #785ab2;
$custom-light: #a289c9;
$custom-dark: #000000;
JSON
{
  "hex": "#785ab2",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 178
  },
  "hsl": {
    "h": 260.455,
    "s": 36.364,
    "l": 52.549
  },
  "oklch": {
    "l": 0.53861,
    "c": 0.13526,
    "h": 297.4
  },
  "luminance": 0.1452
}

Semantic roles & 50–950 ramp

primary
#785AB2
secondary
#BAC7A1
accent
#CC5BA6
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B13
muted
#7F7C82

Preview Lab

Preview with #785AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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