#785CD5#785CD5

#785CD5 is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.5% C 0.178 H 290.2°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#785CD5
RGBrgb(120, 92, 213)
HSLhsl(254, 59%, 60%)
HSVhsv(254, 57%, 84%)
CMYKcmyk(43.7%, 56.8%, 0%, 16.5%)
CIE-LABlab(47.56, 40.21, -58.70)
CIE-LCHlch(47.56, 71.15, 304.41°)
OKLaboklab(56.47% 0.0614 -0.1673)
OKLCHoklch(56.47% 0.178 290.2)
XYZxyz(23.5798, 16.4507, 64.8708)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CD5 #B9D55C
analogous
#5C7DD5 #785CD5 #B45CD5
triadic
#785CD5 #D5785C #5CD578
tetradic
#785CD5 #D55C7D #B9D55C #5CD5B4
square
#785CD5 #D55C7D #B9D55C #5CD5B4
split-complementary
#785CD5 #D5B45C #7DD55C
monochromatic
#3E2591 #5332C2 #785CD5 #A08DE2 #C9BDEE

Accessibility & contrast

On white

4.89
#785CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#785CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CD5
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CD5#FFFFFF#000000##FFFFFF
##785CD51.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F73D9
Deuteranopia (green-blind)
#186ED2
Tritanopia (blue-blind)
#5D7790
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785cd5;
/* rgb */ color: rgb(120, 92, 213);
/* oklch */ color: oklch(56.5% 0.178 290.2);
Tailwind
colors: {
  custom: {
    50: '#a58be3',
    500: '#785cd5',
    950: '#000000',
  },
}
SCSS
$custom: #785cd5;
$custom-light: #a58be3;
$custom-dark: #000000;
JSON
{
  "hex": "#785cd5",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 253.884,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56469,
    "c": 0.1782,
    "h": 290.2
  },
  "luminance": 0.16451
}

Semantic roles & 50–950 ramp

primary
#785CD5
secondary
#D3DEAF
accent
#E246BE
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #785CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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