#785AEF#785AEF

#785AEF is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.0% C 0.213 H 287.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#785AEF
RGBrgb(120, 90, 239)
HSLhsl(252, 82%, 65%)
HSVhsv(252, 62%, 94%)
CMYKcmyk(49.8%, 62.3%, 0%, 6.3%)
CIE-LABlab(48.93, 48.73, -71.20)
CIE-LCHlch(48.93, 86.28, 304.39°)
OKLaboklab(58.04% 0.0624 -0.204)
OKLCHoklch(58.04% 0.213 287)
XYZxyz(26.9773, 17.5361, 83.6080)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AEF #D1EF5A
analogous
#5A86EF #785AEF #C35AEF
triadic
#785AEF #EF785A #5AEF78
tetradic
#785AEF #EF5A86 #D1EF5A #5AEFC3
square
#785AEF #EF5A86 #D1EF5A #5AEFC3
split-complementary
#785AEF #EFC35A #86EF5A
monochromatic
#3512BC #4A22EA #785AEF #A692F4 #D3CAFA

Accessibility & contrast

On white

4.66
#785AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#785AEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785AEF
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AEF#FFFFFF#000000##FFFFFF
##785AEF1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#0070EC
Tritanopia (blue-blind)
#4D7E9C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785aef;
/* rgb */ color: rgb(120, 90, 239);
/* oklch */ color: oklch(58.0% 0.213 287.0);
Tailwind
colors: {
  custom: {
    50: '#a88af5',
    500: '#785aef',
    950: '#000000',
  },
}
SCSS
$custom: #785aef;
$custom-light: #a88af5;
$custom-dark: #000000;
JSON
{
  "hex": "#785aef",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 239
  },
  "hsl": {
    "h": 252.081,
    "s": 82.32,
    "l": 64.51
  },
  "oklch": {
    "l": 0.5804,
    "c": 0.21337,
    "h": 287
  },
  "luminance": 0.17537
}

Semantic roles & 50–950 ramp

primary
#785AEF
secondary
#E2ECB9
accent
#DF07B3
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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