#785FDC#785FDC

#785FDC is a mid, vivid violet. Relative luminance 0.173; OKLCH L 57.4% C 0.183 H 288.5°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#785FDC
RGBrgb(120, 95, 220)
HSLhsl(252, 64%, 62%)
HSVhsv(252, 57%, 86%)
CMYKcmyk(45.5%, 56.8%, 0%, 13.7%)
CIE-LABlab(48.69, 40.46, -60.86)
CIE-LCHlch(48.69, 73.09, 303.61°)
OKLaboklab(57.45% 0.058 -0.1736)
OKLCHoklch(57.45% 0.183 288.5)
XYZxyz(24.7525, 17.3438, 69.7398)
Luminance0.1734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FDC #C3DC5F
analogous
#5F85DC #785FDC #B75FDC
triadic
#785FDC #DC785F #5FDC78
tetradic
#785FDC #DC5F85 #C3DC5F #5FDCB7
square
#785FDC #DC5F85 #C3DC5F #5FDCB7
split-complementary
#785FDC #DCB75F #85DC5F
monochromatic
#3B239E #4E2ED0 #785FDC #A291E7 #CDC3F2

Accessibility & contrast

On white

4.70
#785FDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#785FDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785FDC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FDC#FFFFFF#000000##FFFFFF
##785FDC1.004.704.474.70
#FFFFFF4.701.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0876E0
Deuteranopia (green-blind)
#0E70D9
Tritanopia (blue-blind)
#597B94
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785fdc;
/* rgb */ color: rgb(120, 95, 220);
/* oklch */ color: oklch(57.4% 0.183 288.5);
Tailwind
colors: {
  custom: {
    50: '#a58de8',
    500: '#785fdc',
    950: '#000000',
  },
}
SCSS
$custom: #785fdc;
$custom-light: #a58de8;
$custom-dark: #000000;
JSON
{
  "hex": "#785fdc",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 220
  },
  "hsl": {
    "h": 252,
    "s": 64.103,
    "l": 61.765
  },
  "oklch": {
    "l": 0.57449,
    "c": 0.18306,
    "h": 288.5
  },
  "luminance": 0.17345
}

Semantic roles & 50–950 ramp

primary
#785FDC
secondary
#D9E3B4
accent
#CC1AA8
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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