#785CEE#785CEE

#785CEE is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.3% C 0.210 H 286.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#785CEE
RGBrgb(120, 92, 238)
HSLhsl(252, 81%, 65%)
HSVhsv(252, 61%, 93%)
CMYKcmyk(49.6%, 61.3%, 0%, 6.7%)
CIE-LABlab(49.28, 47.33, -70.07)
CIE-LCHlch(49.28, 84.56, 304.03°)
OKLaboklab(58.27% 0.0605 -0.2007)
OKLCHoklch(58.27% 0.21 286.8)
XYZxyz(27.0010, 17.8191, 82.8891)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CEE #D2EE5C
analogous
#5C89EE #785CEE #C15CEE
triadic
#785CEE #EE785C #5CEE78
tetradic
#785CEE #EE5C89 #D2EE5C #5CEEC1
square
#785CEE #EE5C89 #D2EE5C #5CEEC1
split-complementary
#785CEE #EEC15C #89EE5C
monochromatic
#3414BC #4A25E8 #785CEE #A693F4 #D4CBFA

Accessibility & contrast

On white

4.60
#785CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#785CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785CEE
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CEE#FFFFFF#000000##FFFFFF
##785CEE1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0071EB
Tritanopia (blue-blind)
#4D7F9C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785cee;
/* rgb */ color: rgb(120, 92, 238);
/* oklch */ color: oklch(58.3% 0.210 286.8);
Tailwind
colors: {
  custom: {
    50: '#a88bf4',
    500: '#785cee',
    950: '#000000',
  },
}
SCSS
$custom: #785cee;
$custom-light: #a88bf4;
$custom-dark: #000000;
JSON
{
  "hex": "#785cee",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 251.507,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.5827,
    "c": 0.20965,
    "h": 286.8
  },
  "luminance": 0.1782
}

Semantic roles & 50–950 ramp

primary
#785CEE
secondary
#E2ECBA
accent
#DD08B5
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #785CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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