#786BB8#786BB8

#786BB8 is a mid, moderate violet. Relative luminance 0.180; OKLCH L 57.3% C 0.117 H 290.0°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786BB8
RGBrgb(120, 107, 184)
HSLhsl(250, 35%, 57%)
HSVhsv(250, 42%, 72%)
CMYKcmyk(34.8%, 41.8%, 0%, 27.8%)
CIE-LABlab(49.46, 23.23, -39.00)
CIE-LCHlch(49.46, 45.39, 300.77°)
OKLaboklab(57.35% 0.0398 -0.1095)
OKLCHoklch(57.35% 0.117 290)
XYZxyz(21.6529, 17.9686, 47.6656)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786BB8 #ABB86B
analogous
#6B85B8 #786BB8 #9F6BB8
triadic
#786BB8 #B8786B #6BB878
tetradic
#786BB8 #B86B85 #ABB86B #6BB89F
square
#786BB8 #B86B85 #ABB86B #6BB89F
split-complementary
#786BB8 #B89F6B #85B86B
monochromatic
#413772 #584B9B #786BB8 #9E94CC #C3BEE0

Accessibility & contrast

On white

4.57
#786BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#786BB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786BB8
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786BB8#FFFFFF#000000##000000
##786BB81.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5277BB
Deuteranopia (green-blind)
#5374B6
Tritanopia (blue-blind)
#687989
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786bb8;
/* rgb */ color: rgb(120, 107, 184);
/* oklch */ color: oklch(57.3% 0.117 290.0);
Tailwind
colors: {
  custom: {
    50: '#a195cd',
    500: '#786bb8',
    950: '#000000',
  },
}
SCSS
$custom: #786bb8;
$custom-light: #a195cd;
$custom-dark: #000000;
JSON
{
  "hex": "#786bb8",
  "rgb": {
    "r": 120,
    "g": 107,
    "b": 184
  },
  "hsl": {
    "h": 250.13,
    "s": 35.16,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57346,
    "c": 0.11654,
    "h": 290
  },
  "luminance": 0.17969
}

Semantic roles & 50–950 ramp

primary
#786BB8
secondary
#CACFB0
accent
#CB5DB9
background
#FAF9FC
surface
#F4F1F9
border
#CECBD2
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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