#785EF2#785EF2

#785EF2 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 58.9% C 0.212 H 285.9°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#785EF2
RGBrgb(120, 94, 242)
HSLhsl(251, 85%, 66%)
HSVhsv(251, 61%, 95%)
CMYKcmyk(50.4%, 61.2%, 0%, 5.1%)
CIE-LABlab(49.99, 47.35, -71.16)
CIE-LCHlch(49.99, 85.47, 303.64°)
OKLaboklab(58.88% 0.0583 -0.2039)
OKLCHoklch(58.88% 0.212 285.9)
XYZxyz(27.7707, 18.4079, 86.0770)
Luminance0.1841 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EF2 #D8F25E
analogous
#5E8EF2 #785EF2 #C25EF2
triadic
#785EF2 #F2785E #5EF278
tetradic
#785EF2 #F25E8E #D8F25E #5EF2C2
square
#785EF2 #F25E8E #D8F25E #5EF2C2
split-complementary
#785EF2 #F2C25E #8EF25E
monochromatic
#3010C6 #4925ED #785EF2 #A797F7 #D7CFFB

Accessibility & contrast

On white

4.49
#785EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#785EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785EF2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EF2#FFFFFF#000000##000000
##785EF21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BF7
Deuteranopia (green-blind)
#0073EF
Tritanopia (blue-blind)
#4A819F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #785ef2;
/* rgb */ color: rgb(120, 94, 242);
/* oklch */ color: oklch(58.9% 0.212 285.9);
Tailwind
colors: {
  custom: {
    50: '#a88df7',
    500: '#785ef2',
    950: '#000000',
  },
}
SCSS
$custom: #785ef2;
$custom-light: #a88df7;
$custom-dark: #000000;
JSON
{
  "hex": "#785ef2",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 242
  },
  "hsl": {
    "h": 250.541,
    "s": 85.057,
    "l": 65.882
  },
  "oklch": {
    "l": 0.5888,
    "c": 0.21207,
    "h": 285.9
  },
  "luminance": 0.18409
}

Semantic roles & 50–950 ramp

primary
#785EF2
secondary
#E6EEBD
accent
#E204BB
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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