#786FA5#786FA5

#786FA5 is a mid, moderate violet. Relative luminance 0.181; OKLCH L 57.2% C 0.083 H 291.2°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#786FA5
RGBrgb(120, 111, 165)
HSLhsl(250, 23%, 54%)
HSVhsv(250, 33%, 65%)
CMYKcmyk(27.3%, 32.7%, 0%, 35.3%)
CIE-LABlab(49.59, 15.76, -27.74)
CIE-LCHlch(49.59, 31.91, 299.61°)
OKLaboklab(57.15% 0.0299 -0.077)
OKLCHoklch(57.15% 0.083 291.2)
XYZxyz(20.2200, 18.0782, 38.0142)
Luminance0.1808 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FA5 #9CA56F
analogous
#6F81A5 #786FA5 #936FA5
triadic
#786FA5 #A5786F #6FA578
tetradic
#786FA5 #A56F81 #9CA56F #6FA593
square
#786FA5 #A56F81 #9CA56F #6FA593
split-complementary
#786FA5 #A5936F #81A56F
monochromatic
#413B5F #5B5384 #786FA5 #9B95BD #BFBAD4

Accessibility & contrast

On white

4.55
#786FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#786FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FA5
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FA5#FFFFFF#000000##000000
##786FA51.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6177A7
Deuteranopia (green-blind)
#6175A4
Tritanopia (blue-blind)
#6E7883
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786fa5;
/* rgb */ color: rgb(120, 111, 165);
/* oklch */ color: oklch(57.2% 0.083 291.2);
Tailwind
colors: {
  custom: {
    50: '#a098c0',
    500: '#786fa5',
    950: '#000000',
  },
}
SCSS
$custom: #786fa5;
$custom-light: #a098c0;
$custom-dark: #000000;
JSON
{
  "hex": "#786fa5",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 165
  },
  "hsl": {
    "h": 250,
    "s": 23.077,
    "l": 54.118
  },
  "oklch": {
    "l": 0.57152,
    "c": 0.08255,
    "h": 291.2
  },
  "luminance": 0.18079
}

Semantic roles & 50–950 ramp

primary
#786FA5
secondary
#C0C3AC
accent
#C068B1
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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