#786EA2#786EA2

#786EA2 is a mid, moderate violet. Relative luminance 0.178; OKLCH L 56.8% C 0.080 H 292.5°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#786EA2
RGBrgb(120, 110, 162)
HSLhsl(252, 22%, 53%)
HSVhsv(252, 32%, 64%)
CMYKcmyk(25.9%, 32.1%, 0%, 36.5%)
CIE-LABlab(49.20, 15.59, -26.60)
CIE-LCHlch(49.20, 30.83, 300.38°)
OKLaboklab(56.81% 0.0305 -0.0737)
OKLCHoklch(56.81% 0.08 292.5)
XYZxyz(19.8417, 17.7533, 36.5568)
Luminance0.1775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EA2 #98A26E
analogous
#6E7EA2 #786EA2 #926EA2
triadic
#786EA2 #A2786E #6EA278
tetradic
#786EA2 #A26E7E #98A26E #6EA292
square
#786EA2 #A26E7E #98A26E #6EA292
split-complementary
#786EA2 #A2926E #7EA26E
monochromatic
#413A5B #5B5280 #786EA2 #9B93BA #BDB9D2

Accessibility & contrast

On white

4.61
#786EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#786EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #786EA2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786EA2#FFFFFF#000000##FFFFFF
##786EA21.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6176A4
Deuteranopia (green-blind)
#6174A1
Tritanopia (blue-blind)
#6F7781
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786ea2;
/* rgb */ color: rgb(120, 110, 162);
/* oklch */ color: oklch(56.8% 0.080 292.5);
Tailwind
colors: {
  custom: {
    50: '#a097bd',
    500: '#786ea2',
    950: '#000000',
  },
}
SCSS
$custom: #786ea2;
$custom-light: #a097bd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ea2",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 162
  },
  "hsl": {
    "h": 251.538,
    "s": 21.849,
    "l": 53.333
  },
  "oklch": {
    "l": 0.56805,
    "c": 0.07975,
    "h": 292.5
  },
  "luminance": 0.17754
}

Semantic roles & 50–950 ramp

primary
#786EA2
secondary
#BDC1AB
accent
#BE69AE
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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