#785BE7#785BE7

#785BE7 is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.6% C 0.202 H 287.8°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#785BE7
RGBrgb(120, 91, 231)
HSLhsl(252, 74%, 63%)
HSVhsv(252, 61%, 91%)
CMYKcmyk(48.1%, 60.6%, 0%, 9.4%)
CIE-LABlab(48.57, 45.89, -67.29)
CIE-LCHlch(48.57, 81.44, 304.29°)
OKLaboklab(57.6% 0.062 -0.1925)
OKLCHoklch(57.6% 0.202 287.8)
XYZxyz(25.9064, 17.2436, 77.5491)
Luminance0.1724 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BE7 #CAE75B
analogous
#5B84E7 #785BE7 #BE5BE7
triadic
#785BE7 #E7785B #5BE778
tetradic
#785BE7 #E75B84 #CAE75B #5BE7BE
square
#785BE7 #E75B84 #CAE75B #5BE7BE
split-complementary
#785BE7 #E7BE5B #84E75B
monochromatic
#3819AE #4C26DF #785BE7 #A490EF #D0C6F7

Accessibility & contrast

On white

4.72
#785BE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#785BE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785BE7
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BE7#FFFFFF#000000##FFFFFF
##785BE71.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EC
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#527C98
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #785be7;
/* rgb */ color: rgb(120, 91, 231);
/* oklch */ color: oklch(57.6% 0.202 287.8);
Tailwind
colors: {
  custom: {
    50: '#a78bef',
    500: '#785be7',
    950: '#000000',
  },
}
SCSS
$custom: #785be7;
$custom-light: #a78bef;
$custom-dark: #000000;
JSON
{
  "hex": "#785be7",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 231
  },
  "hsl": {
    "h": 252.429,
    "s": 74.468,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57595,
    "c": 0.20227,
    "h": 287.8
  },
  "luminance": 0.17245
}

Semantic roles & 50–950 ramp

primary
#785BE7
secondary
#DEE8B6
accent
#D70FAD
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785BE7

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

Preview Lab → · Contrast checker → · Palette generator →

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