#785AF0#785AF0

#785AF0 is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.1% C 0.215 H 286.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#785AF0
RGBrgb(120, 90, 240)
HSLhsl(252, 83%, 65%)
HSVhsv(252, 63%, 94%)
CMYKcmyk(50%, 62.5%, 0%, 5.9%)
CIE-LABlab(49.00, 49.01, -71.64)
CIE-LCHlch(49.00, 86.80, 304.38°)
OKLaboklab(58.12% 0.0624 -0.2053)
OKLCHoklch(58.12% 0.215 286.9)
XYZxyz(27.1254, 17.5954, 84.3881)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AF0 #D2F05A
analogous
#5A87F0 #785AF0 #C35AF0
triadic
#785AF0 #F0785A #5AF078
tetradic
#785AF0 #F05A87 #D2F05A #5AF0C3
square
#785AF0 #F05A87 #D2F05A #5AF0C3
split-complementary
#785AF0 #F0C35A #87F05A
monochromatic
#3411BE #4A22EB #785AF0 #A692F5 #D4CAFA

Accessibility & contrast

On white

4.65
#785AF0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#785AF0 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785AF0
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AF0#FFFFFF#000000##FFFFFF
##785AF01.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F5
Deuteranopia (green-blind)
#0070ED
Tritanopia (blue-blind)
#4C7E9D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785af0;
/* rgb */ color: rgb(120, 90, 240);
/* oklch */ color: oklch(58.1% 0.215 286.9);
Tailwind
colors: {
  custom: {
    50: '#a88af6',
    500: '#785af0',
    950: '#000000',
  },
}
SCSS
$custom: #785af0;
$custom-light: #a88af6;
$custom-dark: #000000;
JSON
{
  "hex": "#785af0",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 240
  },
  "hsl": {
    "h": 252,
    "s": 83.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58116,
    "c": 0.21459,
    "h": 286.9
  },
  "luminance": 0.17597
}

Semantic roles & 50–950 ramp

primary
#785AF0
secondary
#E2EDB9
accent
#E006B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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