#786EA7#786EA7

#786EA7 is a mid, moderate violet. Relative luminance 0.179; OKLCH L 57.0% C 0.087 H 291.4°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#786EA7
RGBrgb(120, 110, 167)
HSLhsl(251, 24%, 54%)
HSVhsv(251, 34%, 65%)
CMYKcmyk(28.1%, 34.1%, 0%, 34.5%)
CIE-LABlab(49.42, 16.88, -29.18)
CIE-LCHlch(49.42, 33.71, 300.05°)
OKLaboklab(57.05% 0.0318 -0.0811)
OKLCHoklch(57.05% 0.087 291.4)
XYZxyz(20.2950, 17.9346, 38.9442)
Luminance0.1794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EA7 #9DA76E
analogous
#6E81A7 #786EA7 #956EA7
triadic
#786EA7 #A7786E #6EA778
tetradic
#786EA7 #A76E81 #9DA76E #6EA795
square
#786EA7 #A76E81 #9DA76E #6EA795
split-complementary
#786EA7 #A7956E #81A76E
monochromatic
#413A60 #5B5286 #786EA7 #9B94BE #BFBAD5

Accessibility & contrast

On white

4.58
#786EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##786EA7#FFFFFF#000000##000000
##786EA71.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F76A9
Deuteranopia (green-blind)
#5F74A6
Tritanopia (blue-blind)
#6E7883
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #786ea7;
/* rgb */ color: rgb(120, 110, 167);
/* oklch */ color: oklch(57.0% 0.087 291.4);
Tailwind
colors: {
  custom: {
    50: '#a097c1',
    500: '#786ea7',
    950: '#000000',
  },
}
SCSS
$custom: #786ea7;
$custom-light: #a097c1;
$custom-dark: #000000;
JSON
{
  "hex": "#786ea7",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 167
  },
  "hsl": {
    "h": 250.526,
    "s": 24.464,
    "l": 54.314
  },
  "oklch": {
    "l": 0.57048,
    "c": 0.08711,
    "h": 291.4
  },
  "luminance": 0.17935
}

Semantic roles & 50–950 ramp

primary
#786EA7
secondary
#C0C4AC
accent
#C167B1
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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