#785DCF#785DCF

#785DCF is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.2% C 0.169 H 290.9°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#785DCF
RGBrgb(120, 93, 207)
HSLhsl(254, 54%, 59%)
HSVhsv(254, 55%, 81%)
CMYKcmyk(42%, 55.1%, 0%, 18.8%)
CIE-LABlab(47.40, 37.94, -55.53)
CIE-LCHlch(47.40, 67.26, 304.34°)
OKLaboklab(56.23% 0.0602 -0.158)
OKLCHoklch(56.23% 0.169 290.9)
XYZxyz(22.9195, 16.3261, 60.9630)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DCF #B4CF5D
analogous
#5D7BCF #785DCF #B15DCF
triadic
#785DCF #CF785D #5DCF78
tetradic
#785DCF #CF5D7B #B4CF5D #5DCFB1
square
#785DCF #CF5D7B #B4CF5D #5DCFB1
split-complementary
#785DCF #CFB15D #7BCF5D
monochromatic
#3F2989 #5537B8 #785DCF #9F8CDD #C7BBEB

Accessibility & contrast

On white

4.92
#785DCF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#785DCF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DCF
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DCF#FFFFFF#000000##FFFFFF
##785DCF1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2272D3
Deuteranopia (green-blind)
#286ECC
Tritanopia (blue-blind)
#60758D
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #785dcf;
/* rgb */ color: rgb(120, 93, 207);
/* oklch */ color: oklch(56.2% 0.169 290.9);
Tailwind
colors: {
  custom: {
    50: '#a48cde',
    500: '#785dcf',
    950: '#000000',
  },
}
SCSS
$custom: #785dcf;
$custom-light: #a48cde;
$custom-dark: #000000;
JSON
{
  "hex": "#785dcf",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 207
  },
  "hsl": {
    "h": 254.211,
    "s": 54.286,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56227,
    "c": 0.16904,
    "h": 290.9
  },
  "luminance": 0.16327
}

Semantic roles & 50–950 ramp

primary
#785DCF
secondary
#D0DAAD
accent
#DE4ABB
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785DCF

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

Preview Lab → · Contrast checker → · Palette generator →

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