#786AA2#786AA2

#786AA2 is a mid, moderate violet. Relative luminance 0.169; OKLCH L 56.0% C 0.086 H 294.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#786AA2
RGBrgb(120, 106, 162)
HSLhsl(255, 23%, 53%)
HSVhsv(255, 35%, 64%)
CMYKcmyk(25.9%, 34.6%, 0%, 36.5%)
CIE-LABlab(48.15, 18.00, -28.23)
CIE-LCHlch(48.15, 33.48, 302.52°)
OKLaboklab(56% 0.0364 -0.0783)
OKLCHoklch(56% 0.086 294.9)
XYZxyz(19.4198, 16.9095, 36.4162)
Luminance0.1691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786AA2 #94A26A
analogous
#6A78A2 #786AA2 #946AA2
triadic
#786AA2 #A2786A #6AA278
tetradic
#786AA2 #A26A78 #94A26A #6AA294
square
#786AA2 #A26A78 #94A26A #6AA294
split-complementary
#786AA2 #A2946A #78A26A
monochromatic
#40385A #5B4F7F #786AA2 #9A90BA #BCB5D1

Accessibility & contrast

On white

4.79
#786AA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#786AA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786AA2
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786AA2#FFFFFF#000000##FFFFFF
##786AA21.004.794.384.79
#FFFFFF4.791.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C73A4
Deuteranopia (green-blind)
#5D71A1
Tritanopia (blue-blind)
#6F737E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #786aa2;
/* rgb */ color: rgb(120, 106, 162);
/* oklch */ color: oklch(56.0% 0.086 294.9);
Tailwind
colors: {
  custom: {
    50: '#a094bd',
    500: '#786aa2',
    950: '#000000',
  },
}
SCSS
$custom: #786aa2;
$custom-light: #a094bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786aa2",
  "rgb": {
    "r": 120,
    "g": 106,
    "b": 162
  },
  "hsl": {
    "h": 255,
    "s": 23.14,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56001,
    "c": 0.08641,
    "h": 294.9
  },
  "luminance": 0.1691
}

Semantic roles & 50–950 ramp

primary
#786AA2
secondary
#BAC0A8
accent
#C068AA
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786AA2

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

Preview Lab → · Contrast checker → · Palette generator →

#786AA2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva