#785CEA#785CEA

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

Color values

HEX#785CEA
RGBrgb(120, 92, 234)
HSLhsl(252, 77%, 64%)
HSVhsv(252, 61%, 92%)
CMYKcmyk(48.7%, 60.7%, 0%, 8.2%)
CIE-LABlab(48.99, 46.18, -68.29)
CIE-LCHlch(48.99, 82.44, 304.07°)
OKLaboklab(57.97% 0.0608 -0.1955)
OKLCHoklch(57.97% 0.205 287.3)
XYZxyz(26.4198, 17.5867, 79.8284)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CEA #CEEA5C
analogous
#5C87EA #785CEA #BF5CEA
triadic
#785CEA #EA785C #5CEA78
tetradic
#785CEA #EA5C87 #CEEA5C #5CEABF
square
#785CEA #EA5C87 #CEEA5C #5CEABF
split-complementary
#785CEA #EABF5C #87EA5C
monochromatic
#3617B4 #4B26E3 #785CEA #A592F1 #D2C8F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##785CEA#FFFFFF#000000##FFFFFF
##785CEA1.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)
#0078EF
Deuteranopia (green-blind)
#0071E7
Tritanopia (blue-blind)
#507D9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785cea;
/* rgb */ color: rgb(120, 92, 234);
/* oklch */ color: oklch(58.0% 0.205 287.3);
Tailwind
colors: {
  custom: {
    50: '#a78bf2',
    500: '#785cea',
    950: '#000000',
  },
}
SCSS
$custom: #785cea;
$custom-light: #a78bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#785cea",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 234
  },
  "hsl": {
    "h": 251.831,
    "s": 77.174,
    "l": 63.922
  },
  "oklch": {
    "l": 0.57973,
    "c": 0.2047,
    "h": 287.3
  },
  "luminance": 0.17588
}

Semantic roles & 50–950 ramp

primary
#785CEA
secondary
#E0EAB8
accent
#D90CB1
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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