#785DEF#785DEF

#785DEF is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.5% C 0.210 H 286.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#785DEF
RGBrgb(120, 93, 239)
HSLhsl(251, 82%, 65%)
HSVhsv(251, 61%, 94%)
CMYKcmyk(49.8%, 61.1%, 0%, 6.3%)
CIE-LABlab(49.56, 47.05, -70.17)
CIE-LCHlch(49.56, 84.49, 303.84°)
OKLaboklab(58.5% 0.0595 -0.201)
OKLCHoklch(58.5% 0.21 286.5)
XYZxyz(27.2355, 18.0525, 83.6940)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DEF #D4EF5D
analogous
#5D8BEF #785DEF #C15DEF
triadic
#785DEF #EF785D #5DEF78
tetradic
#785DEF #EF5D8B #D4EF5D #5DEFC1
square
#785DEF #EF5D8B #D4EF5D #5DEFC1
split-complementary
#785DEF #EFC15D #8BEF5D
monochromatic
#3313BF #4A25E9 #785DEF #A695F5 #D5CCFA

Accessibility & contrast

On white

4.55
#785DEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#785DEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785DEF
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DEF#FFFFFF#000000##000000
##785DEF1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF4
Deuteranopia (green-blind)
#0072EC
Tritanopia (blue-blind)
#4C809D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #785def;
/* rgb */ color: rgb(120, 93, 239);
/* oklch */ color: oklch(58.5% 0.210 286.5);
Tailwind
colors: {
  custom: {
    50: '#a88cf5',
    500: '#785def',
    950: '#000000',
  },
}
SCSS
$custom: #785def;
$custom-light: #a88cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#785def",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 239
  },
  "hsl": {
    "h": 251.096,
    "s": 82.022,
    "l": 65.098
  },
  "oklch": {
    "l": 0.585,
    "c": 0.20962,
    "h": 286.5
  },
  "luminance": 0.18054
}

Semantic roles & 50–950 ramp

primary
#785DEF
secondary
#E3EDBB
accent
#DE07B7
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785DEF

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

Preview Lab → · Contrast checker → · Palette generator →

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