#785CD4#785CD4

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

Color values

HEX#785CD4
RGBrgb(120, 92, 212)
HSLhsl(254, 58%, 60%)
HSVhsv(254, 57%, 83%)
CMYKcmyk(43.4%, 56.6%, 0%, 16.9%)
CIE-LABlab(47.49, 39.93, -58.24)
CIE-LCHlch(47.49, 70.61, 304.43°)
OKLaboklab(56.4% 0.0614 -0.1659)
OKLCHoklch(56.4% 0.177 290.3)
XYZxyz(23.4532, 16.4000, 64.2044)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CD4 #B8D45C
analogous
#5C7CD4 #785CD4 #B45CD4
triadic
#785CD4 #D4785C #5CD478
tetradic
#785CD4 #D45C7C #B8D45C #5CD4B4
square
#785CD4 #D45C7C #B8D45C #5CD4B4
split-complementary
#785CD4 #D4B45C #7CD45C
monochromatic
#3F2690 #5433C0 #785CD4 #A08CE1 #C8BDEE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##785CD4#FFFFFF#000000##FFFFFF
##785CD41.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)
#1373D8
Deuteranopia (green-blind)
#1B6ED1
Tritanopia (blue-blind)
#5D768F
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785cd4;
/* rgb */ color: rgb(120, 92, 212);
/* oklch */ color: oklch(56.4% 0.177 290.3);
Tailwind
colors: {
  custom: {
    50: '#a58be2',
    500: '#785cd4',
    950: '#000000',
  },
}
SCSS
$custom: #785cd4;
$custom-light: #a58be2;
$custom-dark: #000000;
JSON
{
  "hex": "#785cd4",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 254,
    "s": 58.252,
    "l": 59.608
  },
  "oklch": {
    "l": 0.564,
    "c": 0.17692,
    "h": 290.3
  },
  "luminance": 0.16401
}

Semantic roles & 50–950 ramp

primary
#785CD4
secondary
#D2DDAF
accent
#E146BD
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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