#785AFF#785AFF

#785AFF is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.3% C 0.233 H 285.2°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#785AFF
RGBrgb(120, 90, 255)
HSLhsl(251, 100%, 68%)
HSVhsv(251, 65%, 100%)
CMYKcmyk(52.9%, 64.7%, 0%, 0%)
CIE-LABlab(50.13, 53.30, -78.18)
CIE-LCHlch(50.13, 94.62, 304.29°)
OKLaboklab(59.28% 0.0608 -0.2245)
OKLCHoklch(59.28% 0.233 285.2)
XYZxyz(29.4465, 18.5238, 96.6122)
Luminance0.1852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AFF #E1FF5A
analogous
#5A8FFF #785AFF #CA5AFF
triadic
#785AFF #FF785A #5AFF78
tetradic
#785AFF #FF5A8F #E1FF5A #5AFFCA
square
#785AFF #FF5A8F #E1FF5A #5AFFCA
split-complementary
#785AFF #FFCA5A #8FFF5A
monochromatic
#2800DF #461DFF #785AFF #AA97FF #DCD4FF

Accessibility & contrast

On white

4.46
#785AFF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#785AFF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785AFF
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AFF#FFFFFF#000000##000000
##785AFF1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFF
Deuteranopia (green-blind)
#0072FC
Tritanopia (blue-blind)
#3F83A5
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #785aff;
/* rgb */ color: rgb(120, 90, 255);
/* oklch */ color: oklch(59.3% 0.233 285.2);
Tailwind
colors: {
  custom: {
    50: '#aa8aff',
    500: '#785aff',
    950: '#000000',
  },
}
SCSS
$custom: #785aff;
$custom-light: #aa8aff;
$custom-dark: #000000;
JSON
{
  "hex": "#785aff",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 255
  },
  "hsl": {
    "h": 250.909,
    "s": 100,
    "l": 67.647
  },
  "oklch": {
    "l": 0.59282,
    "c": 0.23263,
    "h": 285.2
  },
  "luminance": 0.18525
}

Semantic roles & 50–950 ramp

primary
#785AFF
secondary
#EBF4C1
accent
#E600BC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #785AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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