#785AF6#785AF6

#785AF6 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.6% C 0.222 H 286.2°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#785AF6
RGBrgb(120, 90, 246)
HSLhsl(252, 90%, 66%)
HSVhsv(252, 63%, 96%)
CMYKcmyk(51.2%, 63.4%, 0%, 3.5%)
CIE-LABlab(49.44, 50.73, -74.28)
CIE-LCHlch(49.44, 89.94, 304.33°)
OKLaboklab(58.58% 0.0618 -0.2131)
OKLCHoklch(58.58% 0.222 286.2)
XYZxyz(28.0315, 17.9578, 89.1601)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AF6 #D8F65A
analogous
#5A8AF6 #785AF6 #C65AF6
triadic
#785AF6 #F6785A #5AF678
tetradic
#785AF6 #F65A8A #D8F65A #5AF6C6
square
#785AF6 #F65A8A #D8F65A #5AF6C6
split-complementary
#785AF6 #F6C65A #8AF65A
monochromatic
#300BCB #4920F3 #785AF6 #A794F9 #D7CEFC

Accessibility & contrast

On white

4.57
#785AF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#785AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785AF6
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AF6#FFFFFF#000000##000000
##785AF61.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0071F3
Tritanopia (blue-blind)
#4780A0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #785af6;
/* rgb */ color: rgb(120, 90, 246);
/* oklch */ color: oklch(58.6% 0.222 286.2);
Tailwind
colors: {
  custom: {
    50: '#a98afa',
    500: '#785af6',
    950: '#000000',
  },
}
SCSS
$custom: #785af6;
$custom-light: #a98afa;
$custom-dark: #000000;
JSON
{
  "hex": "#785af6",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 251.538,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58577,
    "c": 0.22186,
    "h": 286.2
  },
  "luminance": 0.17959
}

Semantic roles & 50–950 ramp

primary
#785AF6
secondary
#E6F0BC
accent
#E600B9
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #785AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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