#785EF7#785EF7

#785EF7 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.3% C 0.218 H 285.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#785EF7
RGBrgb(120, 94, 247)
HSLhsl(250, 91%, 67%)
HSVhsv(250, 62%, 97%)
CMYKcmyk(51.4%, 61.9%, 0%, 3.1%)
CIE-LABlab(50.35, 48.80, -73.36)
CIE-LCHlch(50.35, 88.11, 303.63°)
OKLaboklab(59.26% 0.0579 -0.2104)
OKLCHoklch(59.26% 0.218 285.4)
XYZxyz(28.5319, 18.7124, 90.0861)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EF7 #DDF75E
analogous
#5E91F7 #785EF7 #C55EF7
triadic
#785EF7 #F7785E #5EF778
tetradic
#785EF7 #F75E91 #DDF75E #5EF7C5
square
#785EF7 #F75E91 #DDF75E #5EF7C5
split-complementary
#785EF7 #F7C55E #91F75E
monochromatic
#2C0AD0 #4724F4 #785EF7 #A998FA #DAD3FD

Accessibility & contrast

On white

4.43
#785EF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#785EF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785EF7
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EF7#FFFFFF#000000##000000
##785EF71.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFC
Deuteranopia (green-blind)
#0073F4
Tritanopia (blue-blind)
#4683A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #785ef7;
/* rgb */ color: rgb(120, 94, 247);
/* oklch */ color: oklch(59.3% 0.218 285.4);
Tailwind
colors: {
  custom: {
    50: '#a98dfb',
    500: '#785ef7',
    950: '#000000',
  },
}
SCSS
$custom: #785ef7;
$custom-light: #a98dfb;
$custom-dark: #000000;
JSON
{
  "hex": "#785ef7",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 247
  },
  "hsl": {
    "h": 250.196,
    "s": 90.533,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59257,
    "c": 0.21821,
    "h": 285.4
  },
  "luminance": 0.18714
}

Semantic roles & 50–950 ramp

primary
#785EF7
secondary
#E9F1C0
accent
#E600BF
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #785EF7

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

Preview Lab → · Contrast checker → · Palette generator →

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