#785A7E#785A7E

#785A7E is a mid, moderate purple. Relative luminance 0.128; OKLCH L 51.2% C 0.066 H 320.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#785A7E
RGBrgb(120, 90, 126)
HSLhsl(290, 17%, 42%)
HSVhsv(290, 29%, 49%)
CMYKcmyk(4.8%, 28.6%, 0%, 50.6%)
CIE-LABlab(42.48, 19.14, -15.47)
CIE-LCHlch(42.48, 24.61, 321.05°)
OKLaboklab(51.17% 0.0513 -0.042)
OKLCHoklch(51.17% 0.066 320.7)
XYZxyz(15.1673, 12.8121, 21.4086)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785A7E #607E5A
analogous
#665A7E #785A7E #7E5A72
triadic
#785A7E #7E785A #5A7E78
tetradic
#785A7E #7E665A #607E5A #5A727E
square
#785A7E #7E665A #607E5A #5A727E
split-complementary
#785A7E #727E5A #5A7E66
monochromatic
#342737 #56405A #785A7E #98779E #B39BB8

Accessibility & contrast

On white

5.89
#785A7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#785A7E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785A7E
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785A7E#FFFFFF#000000##FFFFFF
##785A7E1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#56627F
Deuteranopia (green-blind)
#5D657D
Tritanopia (blue-blind)
#795E67
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #785a7e;
/* rgb */ color: rgb(120, 90, 126);
/* oklch */ color: oklch(51.2% 0.066 320.7);
Tailwind
colors: {
  custom: {
    50: '#9f89a3',
    500: '#785a7e',
    950: '#000000',
  },
}
SCSS
$custom: #785a7e;
$custom-light: #9f89a3;
$custom-dark: #000000;
JSON
{
  "hex": "#785a7e",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 126
  },
  "hsl": {
    "h": 290,
    "s": 16.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.51165,
    "c": 0.06631,
    "h": 320.7
  },
  "luminance": 0.12812
}

Semantic roles & 50–950 ramp

primary
#785A7E
secondary
#92A68E
accent
#B96E7B
background
#F9F8FA
surface
#F2F0F3
border
#CCCBCD
text
#0E0B0F
muted
#7E7C7F

Preview Lab

Preview with #785A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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