#785C8A#785C8A

#785C8A is a mid, moderate violet. Relative luminance 0.135; OKLCH L 52.1% C 0.078 H 311.6°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#785C8A
RGBrgb(120, 92, 138)
HSLhsl(277, 20%, 45%)
HSVhsv(277, 33%, 54%)
CMYKcmyk(13%, 33.3%, 0%, 45.9%)
CIE-LABlab(43.48, 20.61, -21.19)
CIE-LCHlch(43.48, 29.56, 314.20°)
OKLaboklab(52.09% 0.0516 -0.0581)
OKLCHoklch(52.09% 0.078 311.6)
XYZxyz(16.1595, 13.4826, 25.7909)
Luminance0.1348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785C8A #6E8A5C
analogous
#615C8A #785C8A #8A5C85
triadic
#785C8A #8A785C #5C8A78
tetradic
#785C8A #8A615C #6E8A5C #5C858A
square
#785C8A #8A615C #6E8A5C #5C858A
split-complementary
#785C8A #858A5C #5C8A61
monochromatic
#382B41 #584465 #785C8A #967CA7 #B4A0C0

Accessibility & contrast

On white

5.68
#785C8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#785C8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785C8A
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785C8A#FFFFFF#000000##FFFFFF
##785C8A1.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#54658C
Deuteranopia (green-blind)
#5A6789
Tritanopia (blue-blind)
#76626D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #785c8a;
/* rgb */ color: rgb(120, 92, 138);
/* oklch */ color: oklch(52.1% 0.078 311.6);
Tailwind
colors: {
  custom: {
    50: '#9f8aac',
    500: '#785c8a',
    950: '#000000',
  },
}
SCSS
$custom: #785c8a;
$custom-light: #9f8aac;
$custom-dark: #000000;
JSON
{
  "hex": "#785c8a",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 138
  },
  "hsl": {
    "h": 276.522,
    "s": 20,
    "l": 45.098
  },
  "oklch": {
    "l": 0.52092,
    "c": 0.07777,
    "h": 311.6
  },
  "luminance": 0.13482
}

Semantic roles & 50–950 ramp

primary
#785C8A
secondary
#9EAE94
accent
#BD6B8B
background
#F9F8FA
surface
#F2F0F4
border
#CCCBCE
text
#0E0C10
muted
#7E7D7F

Preview Lab

Preview with #785C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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