#786FA3#786FA3

#786FA3 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.1% C 0.080 H 291.6°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#786FA3
RGBrgb(120, 111, 163)
HSLhsl(250, 22%, 54%)
HSVhsv(250, 32%, 64%)
CMYKcmyk(26.4%, 31.9%, 0%, 36.1%)
CIE-LABlab(49.50, 15.25, -26.71)
CIE-LCHlch(49.50, 30.75, 299.72°)
OKLaboklab(57.06% 0.0293 -0.074)
OKLCHoklch(57.06% 0.08 291.6)
XYZxyz(20.0394, 18.0060, 37.0630)
Luminance0.1801 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA3 #9AA36F
analogous
#6F80A3 #786FA3 #926FA3
triadic
#786FA3 #A3786F #6FA378
tetradic
#786FA3 #A36F80 #9AA36F #6FA392
square
#786FA3 #A36F80 #9AA36F #6FA392
split-complementary
#786FA3 #A3926F #80A36F
monochromatic
#413B5D #5B5382 #786FA3 #9B94BB #BEBAD3

Accessibility & contrast

On white

4.56
#786FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#786FA3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA3
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA3#FFFFFF#000000##000000
##786FA31.004.564.604.60
#FFFFFF4.561.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6277A5
Deuteranopia (green-blind)
#6275A2
Tritanopia (blue-blind)
#6F7882
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa3;
/* rgb */ color: rgb(120, 111, 163);
/* oklch */ color: oklch(57.1% 0.080 291.6);
Tailwind
colors: {
  custom: {
    50: '#a098be',
    500: '#786fa3',
    950: '#000000',
  },
}
SCSS
$custom: #786fa3;
$custom-light: #a098be;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa3",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 163
  },
  "hsl": {
    "h": 250.385,
    "s": 22.034,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57056,
    "c": 0.07959,
    "h": 291.6
  },
  "luminance": 0.18006
}

Semantic roles & 50–950 ramp

primary
#786FA3
secondary
#BEC2AC
accent
#BF69B0
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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