#785AEB#785AEB

#785AEB is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.7% C 0.208 H 287.5°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#785AEB
RGBrgb(120, 90, 235)
HSLhsl(252, 78%, 64%)
HSVhsv(252, 62%, 92%)
CMYKcmyk(48.9%, 61.7%, 0%, 7.8%)
CIE-LABlab(48.64, 47.59, -69.42)
CIE-LCHlch(48.64, 84.17, 304.43°)
OKLaboklab(57.74% 0.0627 -0.1988)
OKLCHoklch(57.74% 0.208 287.5)
XYZxyz(26.3929, 17.3024, 80.5302)
Luminance0.1730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AEB #CDEB5A
analogous
#5A84EB #785AEB #C05AEB
triadic
#785AEB #EB785A #5AEB78
tetradic
#785AEB #EB5A84 #CDEB5A #5AEBC0
square
#785AEB #EB5A84 #CDEB5A #5AEBC0
split-complementary
#785AEB #EBC05A #84EB5A
monochromatic
#3716B5 #4B23E4 #785AEB #A591F2 #D1C7F8

Accessibility & contrast

On white

4.71
#785AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#785AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785AEB
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AEB#FFFFFF#000000##FFFFFF
##785AEB1.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0070E8
Tritanopia (blue-blind)
#507C9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #785aeb;
/* rgb */ color: rgb(120, 90, 235);
/* oklch */ color: oklch(57.7% 0.208 287.5);
Tailwind
colors: {
  custom: {
    50: '#a78af2',
    500: '#785aeb',
    950: '#000000',
  },
}
SCSS
$custom: #785aeb;
$custom-light: #a78af2;
$custom-dark: #000000;
JSON
{
  "hex": "#785aeb",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 252.414,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.57738,
    "c": 0.20847,
    "h": 287.5
  },
  "luminance": 0.17304
}

Semantic roles & 50–950 ramp

primary
#785AEB
secondary
#DFEAB7
accent
#DB0BB0
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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