#786CA0#786CA0

#786CA0 is a mid, moderate violet. Relative luminance 0.173; OKLCH L 56.3% C 0.080 H 294.3°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#786CA0
RGBrgb(120, 108, 160)
HSLhsl(254, 21%, 53%)
HSVhsv(254, 33%, 63%)
CMYKcmyk(25%, 32.5%, 0%, 37.3%)
CIE-LABlab(48.58, 16.29, -26.38)
CIE-LCHlch(48.58, 31.00, 301.69°)
OKLaboklab(56.31% 0.0329 -0.073)
OKLCHoklch(56.31% 0.08 294.3)
XYZxyz(19.4520, 17.2560, 35.5568)
Luminance0.1726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786CA0 #94A06C
analogous
#6C7AA0 #786CA0 #926CA0
triadic
#786CA0 #A0786C #6CA078
tetradic
#786CA0 #A06C7A #94A06C #6CA092
square
#786CA0 #A06C7A #94A06C #6CA092
split-complementary
#786CA0 #A0926C #7AA06C
monochromatic
#403958 #5B517E #786CA0 #9A91B8 #BCB6D0

Accessibility & contrast

On white

4.72
#786CA0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#786CA0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #786CA0
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786CA0#FFFFFF#000000##FFFFFF
##786CA01.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F74A2
Deuteranopia (green-blind)
#60739F
Tritanopia (blue-blind)
#70757F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #786ca0;
/* rgb */ color: rgb(120, 108, 160);
/* oklch */ color: oklch(56.3% 0.080 294.3);
Tailwind
colors: {
  custom: {
    50: '#a096bc',
    500: '#786ca0',
    950: '#000000',
  },
}
SCSS
$custom: #786ca0;
$custom-light: #a096bc;
$custom-dark: #000000;
JSON
{
  "hex": "#786ca0",
  "rgb": {
    "r": 120,
    "g": 108,
    "b": 160
  },
  "hsl": {
    "h": 253.846,
    "s": 21.488,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56305,
    "c": 0.08013,
    "h": 294.3
  },
  "luminance": 0.17256
}

Semantic roles & 50–950 ramp

primary
#786CA0
secondary
#BABFA9
accent
#BE6AAB
background
#F9F9FB
surface
#F2F1F6
border
#CCCBD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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