#785CA6#785CA6

#785CA6 is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.5% C 0.116 H 300.0°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#785CA6
RGBrgb(120, 92, 166)
HSLhsl(263, 29%, 51%)
HSVhsv(263, 45%, 65%)
CMYKcmyk(27.7%, 44.6%, 0%, 34.9%)
CIE-LABlab(44.80, 27.45, -35.83)
CIE-LCHlch(44.80, 45.13, 307.46°)
OKLaboklab(53.53% 0.0578 -0.1003)
OKLCHoklch(53.53% 0.116 300)
XYZxyz(18.4542, 14.4004, 37.8763)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CA6 #8AA65C
analogous
#5C65A6 #785CA6 #9D5CA6
triadic
#785CA6 #A6785C #5CA678
tetradic
#785CA6 #A65C65 #8AA65C #5CA69D
square
#785CA6 #A65C65 #8AA65C #5CA69D
split-complementary
#785CA6 #A69D5C #65A65C
monochromatic
#3F3058 #5B467F #785CA6 #9984BC #BAABD1

Accessibility & contrast

On white

5.41
#785CA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#785CA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CA6
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CA6#FFFFFF#000000##FFFFFF
##785CA61.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#476AA9
Deuteranopia (green-blind)
#4D69A4
Tritanopia (blue-blind)
#6F6979
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #785ca6;
/* rgb */ color: rgb(120, 92, 166);
/* oklch */ color: oklch(53.5% 0.116 300.0);
Tailwind
colors: {
  custom: {
    50: '#a18ac1',
    500: '#785ca6',
    950: '#000000',
  },
}
SCSS
$custom: #785ca6;
$custom-light: #a18ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#785ca6",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 166
  },
  "hsl": {
    "h": 262.703,
    "s": 29.365,
    "l": 50.588
  },
  "oklch": {
    "l": 0.53525,
    "c": 0.11575,
    "h": 300
  },
  "luminance": 0.14401
}

Semantic roles & 50–950 ramp

primary
#785CA6
secondary
#B3BF9E
accent
#C662A0
background
#FAF8FB
surface
#F3F0F7
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #785CA6

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

Preview Lab → · Contrast checker → · Palette generator →

#785CA6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva