#785DFB#785DFB

#785DFB is a mid, highly saturated violet. Relative luminance 0.188; OKLCH L 59.4% C 0.224 H 285.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#785DFB
RGBrgb(120, 93, 251)
HSLhsl(250, 95%, 67%)
HSVhsv(250, 63%, 98%)
CMYKcmyk(52.2%, 62.9%, 0%, 1.6%)
CIE-LABlab(50.43, 50.51, -75.45)
CIE-LCHlch(50.43, 90.80, 303.80°)
OKLaboklab(59.41% 0.0585 -0.2165)
OKLCHoklch(59.41% 0.224 285.1)
XYZxyz(29.0674, 18.7852, 93.3424)
Luminance0.1879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DFB #E0FB5D
analogous
#5D91FB #785DFB #C75DFB
triadic
#785DFB #FB785D #5DFB78
tetradic
#785DFB #FB5D91 #E0FB5D #5DFBC7
square
#785DFB #FB5D91 #E0FB5D #5DFBC7
split-complementary
#785DFB #FBC75D #91FB5D
monochromatic
#2905D8 #4621FA #785DFB #AA99FC #DCD4FE

Accessibility & contrast

On white

4.41
#785DFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#785DFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785DFB
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DFB#FFFFFF#000000##000000
##785DFB1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#4284A4
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #785dfb;
/* rgb */ color: rgb(120, 93, 251);
/* oklch */ color: oklch(59.4% 0.224 285.1);
Tailwind
colors: {
  custom: {
    50: '#a98cfe',
    500: '#785dfb',
    950: '#000000',
  },
}
SCSS
$custom: #785dfb;
$custom-light: #a98cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#785dfb",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 251
  },
  "hsl": {
    "h": 250.253,
    "s": 95.181,
    "l": 67.451
  },
  "oklch": {
    "l": 0.59412,
    "c": 0.2243,
    "h": 285.1
  },
  "luminance": 0.18787
}

Semantic roles & 50–950 ramp

primary
#785DFB
secondary
#EAF3C1
accent
#E600BE
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #785DFB

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

Preview Lab → · Contrast checker → · Palette generator →

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