#785CDC#785CDC

#785CDC is a mid, vivid violet. Relative luminance 0.168; OKLCH L 57.0% C 0.187 H 289.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#785CDC
RGBrgb(120, 92, 220)
HSLhsl(253, 65%, 61%)
HSVhsv(253, 58%, 86%)
CMYKcmyk(45.5%, 58.2%, 0%, 13.7%)
CIE-LABlab(48.02, 42.19, -61.94)
CIE-LCHlch(48.02, 74.94, 304.26°)
OKLaboklab(56.96% 0.0614 -0.1768)
OKLCHoklch(56.96% 0.187 289.1)
XYZxyz(24.4875, 16.8137, 69.6514)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CDC #C0DC5C
analogous
#5C80DC #785CDC #B85CDC
triadic
#785CDC #DC785C #5CDC78
tetradic
#785CDC #DC5C80 #C0DC5C #5CDCB8
square
#785CDC #DC5C80 #C0DC5C #5CDCB8
split-complementary
#785CDC #DCB85C #80DC5C
monochromatic
#3C229C #502CCE #785CDC #A28EE7 #CBC1F2

Accessibility & contrast

On white

4.81
#785CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#785CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CDC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CDC#FFFFFF#000000##FFFFFF
##785CDC1.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#006FD9
Tritanopia (blue-blind)
#597993
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #785cdc;
/* rgb */ color: rgb(120, 92, 220);
/* oklch */ color: oklch(57.0% 0.187 289.1);
Tailwind
colors: {
  custom: {
    50: '#a68be8',
    500: '#785cdc',
    950: '#000000',
  },
}
SCSS
$custom: #785cdc;
$custom-light: #a68be8;
$custom-dark: #000000;
JSON
{
  "hex": "#785cdc",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 220
  },
  "hsl": {
    "h": 253.125,
    "s": 64.646,
    "l": 61.176
  },
  "oklch": {
    "l": 0.56959,
    "c": 0.18714,
    "h": 289.1
  },
  "luminance": 0.16815
}

Semantic roles & 50–950 ramp

primary
#785CDC
secondary
#D7E2B2
accent
#CC19A5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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