#785BEF#785BEF

#785BEF is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.2% C 0.212 H 286.8°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#785BEF
RGBrgb(120, 91, 239)
HSLhsl(252, 82%, 65%)
HSVhsv(252, 62%, 94%)
CMYKcmyk(49.8%, 61.9%, 0%, 6.3%)
CIE-LABlab(49.14, 48.17, -70.86)
CIE-LCHlch(49.14, 85.68, 304.21°)
OKLaboklab(58.19% 0.0614 -0.203)
OKLCHoklch(58.19% 0.212 286.8)
XYZxyz(27.0622, 17.7059, 83.6363)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BEF #D2EF5B
analogous
#5B88EF #785BEF #C25BEF
triadic
#785BEF #EF785B #5BEF78
tetradic
#785BEF #EF5B88 #D2EF5B #5BEFC2
square
#785BEF #EF5B88 #D2EF5B #5BEFC2
split-complementary
#785BEF #EFC25B #88EF5B
monochromatic
#3412BD #4A23EA #785BEF #A693F4 #D4CBFA

Accessibility & contrast

On white

4.62
#785BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#785BEF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785BEF
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BEF#FFFFFF#000000##FFFFFF
##785BEF1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#4D7E9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785bef;
/* rgb */ color: rgb(120, 91, 239);
/* oklch */ color: oklch(58.2% 0.212 286.8);
Tailwind
colors: {
  custom: {
    50: '#a88bf5',
    500: '#785bef',
    950: '#000000',
  },
}
SCSS
$custom: #785bef;
$custom-light: #a88bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#785bef",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 251.757,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58192,
    "c": 0.21212,
    "h": 286.8
  },
  "luminance": 0.17707
}

Semantic roles & 50–950 ramp

primary
#785BEF
secondary
#E2ECBA
accent
#DF07B4
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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