#786DAF#786DAF

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

Color values

HEX#786DAF
RGBrgb(120, 109, 175)
HSLhsl(250, 29%, 56%)
HSVhsv(250, 38%, 69%)
CMYKcmyk(31.4%, 37.7%, 0%, 31.4%)
CIE-LABlab(49.53, 19.59, -33.67)
CIE-LCHlch(49.53, 38.96, 300.19°)
OKLaboklab(57.25% 0.0352 -0.094)
OKLCHoklch(57.25% 0.1 290.5)
XYZxyz(20.9502, 18.0251, 42.9245)
Luminance0.1802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786DAF #A4AF6D
analogous
#6D83AF #786DAF #996DAF
triadic
#786DAF #AF786D #6DAF78
tetradic
#786DAF #AF6D83 #A4AF6D #6DAF99
square
#786DAF #AF6D83 #A4AF6D #6DAF99
split-complementary
#786DAF #AF996D #83AF6D
monochromatic
#413968 #5A4F90 #786DAF #9D95C5 #C1BCDA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786DAF#FFFFFF#000000##000000
##786DAF1.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)
#5A77B2
Deuteranopia (green-blind)
#5A74AD
Tritanopia (blue-blind)
#6B7986
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786daf;
/* rgb */ color: rgb(120, 109, 175);
/* oklch */ color: oklch(57.3% 0.100 290.5);
Tailwind
colors: {
  custom: {
    50: '#a197c7',
    500: '#786daf',
    950: '#000000',
  },
}
SCSS
$custom: #786daf;
$custom-light: #a197c7;
$custom-dark: #000000;
JSON
{
  "hex": "#786daf",
  "rgb": {
    "r": 120,
    "g": 109,
    "b": 175
  },
  "hsl": {
    "h": 250,
    "s": 29.204,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57253,
    "c": 0.10042,
    "h": 290.5
  },
  "luminance": 0.18025
}

Semantic roles & 50–950 ramp

primary
#786DAF
secondary
#C5CAAE
accent
#C562B5
background
#FAF9FC
surface
#F3F2F8
border
#CDCCD1
text
#0F0D13
muted
#7F7E82

Preview Lab

Preview with #786DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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