#785DE7#785DE7

#785DE7 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 57.9% C 0.200 H 287.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#785DE7
RGBrgb(120, 93, 231)
HSLhsl(252, 74%, 64%)
HSVhsv(252, 60%, 91%)
CMYKcmyk(48.1%, 59.7%, 0%, 9.4%)
CIE-LABlab(49.00, 44.75, -66.59)
CIE-LCHlch(49.00, 80.23, 303.90°)
OKLaboklab(57.91% 0.0599 -0.1905)
OKLCHoklch(57.91% 0.2 287.5)
XYZxyz(26.0797, 17.5901, 77.6069)
Luminance0.1759 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DE7 #CCE75D
analogous
#5D87E7 #785DE7 #BD5DE7
triadic
#785DE7 #E7785D #5DE778
tetradic
#785DE7 #E75D87 #CCE75D #5DE7BD
square
#785DE7 #E75D87 #CCE75D #5DE7BD
split-complementary
#785DE7 #E7BD5D #87E75D
monochromatic
#371AB0 #4C28DF #785DE7 #A492EF #D1C8F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##785DE7#FFFFFF#000000##FFFFFF
##785DE71.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)
#0078EB
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#527D99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785de7;
/* rgb */ color: rgb(120, 93, 231);
/* oklch */ color: oklch(57.9% 0.200 287.5);
Tailwind
colors: {
  custom: {
    50: '#a78cef',
    500: '#785de7',
    950: '#000000',
  },
}
SCSS
$custom: #785de7;
$custom-light: #a78cef;
$custom-dark: #000000;
JSON
{
  "hex": "#785de7",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 231
  },
  "hsl": {
    "h": 251.739,
    "s": 74.194,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57909,
    "c": 0.19968,
    "h": 287.5
  },
  "luminance": 0.17591
}

Semantic roles & 50–950 ramp

primary
#785DE7
secondary
#DFE8B7
accent
#D60FAF
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785DE7

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

Preview Lab → · Contrast checker → · Palette generator →

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