#785DEC#785DEC

#785DEC is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.3% C 0.206 H 286.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#785DEC
RGBrgb(120, 93, 236)
HSLhsl(251, 79%, 65%)
HSVhsv(251, 61%, 93%)
CMYKcmyk(49.2%, 60.6%, 0%, 7.5%)
CIE-LABlab(49.35, 46.19, -68.84)
CIE-LCHlch(49.35, 82.90, 303.86°)
OKLaboklab(58.28% 0.0596 -0.1971)
OKLCHoklch(58.28% 0.206 286.8)
XYZxyz(26.7960, 17.8766, 81.3792)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DEC #D1EC5D
analogous
#5D89EC #785DEC #C05DEC
triadic
#785DEC #EC785D #5DEC78
tetradic
#785DEC #EC5D89 #D1EC5D #5DECC0
square
#785DEC #EC5D89 #D1EC5D #5DECC0
split-complementary
#785DEC #ECC05D #89EC5D
monochromatic
#3516B9 #4A26E6 #785DEC #A694F2 #D3CBF9

Accessibility & contrast

On white

4.59
#785DEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#785DEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785DEC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DEC#FFFFFF#000000##FFFFFF
##785DEC1.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#4F7F9C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785dec;
/* rgb */ color: rgb(120, 93, 236);
/* oklch */ color: oklch(58.3% 0.206 286.8);
Tailwind
colors: {
  custom: {
    50: '#a78cf3',
    500: '#785dec',
    950: '#000000',
  },
}
SCSS
$custom: #785dec;
$custom-light: #a78cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#785dec",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 236
  },
  "hsl": {
    "h": 251.329,
    "s": 79.006,
    "l": 64.51
  },
  "oklch": {
    "l": 0.58277,
    "c": 0.20591,
    "h": 286.8
  },
  "luminance": 0.17878
}

Semantic roles & 50–950 ramp

primary
#785DEC
secondary
#E2EBBA
accent
#DB0AB4
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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