#785CE8#785CE8

#785CE8 is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 57.8% C 0.202 H 287.5°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#785CE8
RGBrgb(120, 92, 232)
HSLhsl(252, 75%, 64%)
HSVhsv(252, 60%, 91%)
CMYKcmyk(48.3%, 60.3%, 0%, 9%)
CIE-LABlab(48.85, 45.61, -67.39)
CIE-LCHlch(48.85, 81.37, 304.09°)
OKLaboklab(57.83% 0.0609 -0.1928)
OKLCHoklch(57.83% 0.202 287.5)
XYZxyz(26.1341, 17.4724, 78.3238)
Luminance0.1747 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CE8 #CCE85C
analogous
#5C86E8 #785CE8 #BE5CE8
triadic
#785CE8 #E8785C #5CE878
tetradic
#785CE8 #E85C86 #CCE85C #5CE8BE
square
#785CE8 #E85C86 #CCE85C #5CE8BE
split-complementary
#785CE8 #E8BE5C #86E85C
monochromatic
#3719B1 #4C26E0 #785CE8 #A492F0 #D1C7F7

Accessibility & contrast

On white

4.67
#785CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.49
#785CE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CE8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CE8#FFFFFF#000000##FFFFFF
##785CE81.004.674.494.67
#FFFFFF4.671.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#0070E5
Tritanopia (blue-blind)
#527D99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785ce8;
/* rgb */ color: rgb(120, 92, 232);
/* oklch */ color: oklch(57.8% 0.202 287.5);
Tailwind
colors: {
  custom: {
    50: '#a78bf0',
    500: '#785ce8',
    950: '#000000',
  },
}
SCSS
$custom: #785ce8;
$custom-light: #a78bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#785ce8",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 252,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57825,
    "c": 0.20222,
    "h": 287.5
  },
  "luminance": 0.17474
}

Semantic roles & 50–950 ramp

primary
#785CE8
secondary
#DFE9B7
accent
#D70EAF
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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