#786EA8#786EA8

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

Color values

HEX#786EA8
RGBrgb(120, 110, 168)
HSLhsl(250, 25%, 55%)
HSVhsv(250, 35%, 66%)
CMYKcmyk(28.6%, 34.5%, 0%, 34.1%)
CIE-LABlab(49.46, 17.14, -29.69)
CIE-LCHlch(49.46, 34.29, 300.00°)
OKLaboklab(57.1% 0.0321 -0.0826)
OKLCHoklch(57.1% 0.089 291.2)
XYZxyz(20.3878, 17.9717, 39.4329)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786EA8 #9EA86E
analogous
#6E81A8 #786EA8 #956EA8
triadic
#786EA8 #A8786E #6EA878
tetradic
#786EA8 #A86E81 #9EA86E #6EA895
square
#786EA8 #A86E81 #9EA86E #6EA895
split-complementary
#786EA8 #A8956E #81A86E
monochromatic
#413A61 #5B5188 #786EA8 #9C94BF #BFBBD6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##786EA8#FFFFFF#000000##000000
##786EA81.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)
#5E77AA
Deuteranopia (green-blind)
#5F74A6
Tritanopia (blue-blind)
#6D7883
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #786ea8;
/* rgb */ color: rgb(120, 110, 168);
/* oklch */ color: oklch(57.1% 0.089 291.2);
Tailwind
colors: {
  custom: {
    50: '#a097c2',
    500: '#786ea8',
    950: '#000000',
  },
}
SCSS
$custom: #786ea8;
$custom-light: #a097c2;
$custom-dark: #000000;
JSON
{
  "hex": "#786ea8",
  "rgb": {
    "r": 120,
    "g": 110,
    "b": 168
  },
  "hsl": {
    "h": 250.345,
    "s": 25,
    "l": 54.51
  },
  "oklch": {
    "l": 0.57097,
    "c": 0.08859,
    "h": 291.2
  },
  "luminance": 0.17972
}

Semantic roles & 50–950 ramp

primary
#786EA8
secondary
#C1C5AD
accent
#C166B2
background
#F9F9FB
surface
#F2F2F7
border
#CCCCD0
text
#0F0D12
muted
#7E7E81

Preview Lab

Preview with #786EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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