#785CEF#785CEF

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

Color values

HEX#785CEF
RGBrgb(120, 92, 239)
HSLhsl(251, 82%, 65%)
HSVhsv(251, 62%, 94%)
CMYKcmyk(49.8%, 61.5%, 0%, 6.3%)
CIE-LABlab(49.35, 47.61, -70.52)
CIE-LCHlch(49.35, 85.09, 304.03°)
OKLaboklab(58.35% 0.0605 -0.202)
OKLCHoklch(58.35% 0.211 286.7)
XYZxyz(27.1483, 17.8781, 83.6649)
Luminance0.1788 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CEF #D3EF5C
analogous
#5C89EF #785CEF #C25CEF
triadic
#785CEF #EF785C #5CEF78
tetradic
#785CEF #EF5C89 #D3EF5C #5CEFC2
square
#785CEF #EF5C89 #D3EF5C #5CEFC2
split-complementary
#785CEF #EFC25C #89EF5C
monochromatic
#3313BE #4A24EA #785CEF #A694F4 #D4CBFA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##785CEF#FFFFFF#000000##FFFFFF
##785CEF1.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)
#0079F4
Deuteranopia (green-blind)
#0071EC
Tritanopia (blue-blind)
#4D7F9D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785cef;
/* rgb */ color: rgb(120, 92, 239);
/* oklch */ color: oklch(58.3% 0.211 286.7);
Tailwind
colors: {
  custom: {
    50: '#a88bf5',
    500: '#785cef',
    950: '#000000',
  },
}
SCSS
$custom: #785cef;
$custom-light: #a88bf5;
$custom-dark: #000000;
JSON
{
  "hex": "#785cef",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 239
  },
  "hsl": {
    "h": 251.429,
    "s": 82.123,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58345,
    "c": 0.21088,
    "h": 286.7
  },
  "luminance": 0.17879
}

Semantic roles & 50–950 ramp

primary
#785CEF
secondary
#E3ECBA
accent
#DF07B5
background
#FAF8FF
surface
#F5F0FF
border
#CFCBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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