#785A8A#785A8A

#785A8A is a mid, moderate violet. Relative luminance 0.131; OKLCH L 51.7% C 0.082 H 312.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#785A8A
RGBrgb(120, 90, 138)
HSLhsl(278, 21%, 45%)
HSVhsv(278, 35%, 54%)
CMYKcmyk(13%, 34.8%, 0%, 45.9%)
CIE-LABlab(42.97, 21.81, -21.98)
CIE-LCHlch(42.97, 30.96, 314.79°)
OKLaboklab(51.71% 0.0548 -0.0604)
OKLCHoklch(51.71% 0.082 312.2)
XYZxyz(15.9886, 13.1406, 25.7339)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785A8A #6C8A5A
analogous
#605A8A #785A8A #8A5A84
triadic
#785A8A #8A785A #5A8A78
tetradic
#785A8A #8A605A #6C8A5A #5A848A
square
#785A8A #8A605A #6C8A5A #5A848A
split-complementary
#785A8A #848A5A #5A8A60
monochromatic
#382A40 #584265 #785A8A #9679A8 #B39EC0

Accessibility & contrast

On white

5.79
#785A8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#785A8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785A8A
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785A8A#FFFFFF#000000##FFFFFF
##785A8A1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#52648C
Deuteranopia (green-blind)
#596689
Tritanopia (blue-blind)
#76606C
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #785a8a;
/* rgb */ color: rgb(120, 90, 138);
/* oklch */ color: oklch(51.7% 0.082 312.2);
Tailwind
colors: {
  custom: {
    50: '#9f89ac',
    500: '#785a8a',
    950: '#000000',
  },
}
SCSS
$custom: #785a8a;
$custom-light: #9f89ac;
$custom-dark: #000000;
JSON
{
  "hex": "#785a8a",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 138
  },
  "hsl": {
    "h": 277.5,
    "s": 21.053,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51706,
    "c": 0.08155,
    "h": 312.2
  },
  "luminance": 0.1314
}

Semantic roles & 50–950 ramp

primary
#785A8A
secondary
#9CAE92
accent
#BE6A89
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0B10
muted
#7E7C7F

Preview Lab

Preview with #785A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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