#785ECD#785ECD

#785ECD is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.3% C 0.165 H 290.9°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#785ECD
RGBrgb(120, 94, 205)
HSLhsl(254, 53%, 59%)
HSVhsv(254, 54%, 80%)
CMYKcmyk(41.5%, 54.1%, 0%, 19.6%)
CIE-LABlab(47.50, 36.80, -54.22)
CIE-LCHlch(47.50, 65.53, 304.16°)
OKLaboklab(56.26% 0.0589 -0.1541)
OKLCHoklch(56.26% 0.165 290.9)
XYZxyz(22.7649, 16.4056, 59.7129)
Luminance0.1641 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785ECD #B3CD5E
analogous
#5E7BCD #785ECD #AF5ECD
triadic
#785ECD #CD785E #5ECD78
tetradic
#785ECD #CD5E7B #B3CD5E #5ECDAF
square
#785ECD #CD5E7B #B3CD5E #5ECDAF
split-complementary
#785ECD #CDAF5E #7BCD5E
monochromatic
#402A87 #5638B5 #785ECD #9F8DDC #C6BBEA

Accessibility & contrast

On white

4.91
#785ECD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#785ECD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785ECD
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785ECD#FFFFFF#000000##FFFFFF
##785ECD1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2873D1
Deuteranopia (green-blind)
#2D6ECB
Tritanopia (blue-blind)
#60768C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785ecd;
/* rgb */ color: rgb(120, 94, 205);
/* oklch */ color: oklch(56.3% 0.165 290.9);
Tailwind
colors: {
  custom: {
    50: '#a48cdd',
    500: '#785ecd',
    950: '#000000',
  },
}
SCSS
$custom: #785ecd;
$custom-light: #a48cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#785ecd",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 205
  },
  "hsl": {
    "h": 254.054,
    "s": 52.607,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56263,
    "c": 0.16498,
    "h": 290.9
  },
  "luminance": 0.16406
}

Semantic roles & 50–950 ramp

primary
#785ECD
secondary
#CFD9AD
accent
#DC4CBA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785ECD

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

Preview Lab → · Contrast checker → · Palette generator →

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