#785AEE#785AEE

#785AEE is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.0% C 0.212 H 287.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#785AEE
RGBrgb(120, 90, 238)
HSLhsl(252, 81%, 64%)
HSVhsv(252, 62%, 93%)
CMYKcmyk(49.6%, 62.2%, 0%, 6.7%)
CIE-LABlab(48.86, 48.44, -70.76)
CIE-LCHlch(48.86, 85.75, 304.40°)
OKLaboklab(57.96% 0.0625 -0.2027)
OKLCHoklch(57.96% 0.212 287.1)
XYZxyz(26.8300, 17.4772, 82.8321)
Luminance0.1748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AEE #D0EE5A
analogous
#5A86EE #785AEE #C25AEE
triadic
#785AEE #EE785A #5AEE78
tetradic
#785AEE #EE5A86 #D0EE5A #5AEEC2
square
#785AEE #EE5A86 #D0EE5A #5AEEC2
split-complementary
#785AEE #EEC25A #86EE5A
monochromatic
#3513BA #4B23E8 #785AEE #A591F4 #D3C9F9

Accessibility & contrast

On white

4.67
#785AEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#785AEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785AEE
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AEE#FFFFFF#000000##FFFFFF
##785AEE1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F3
Deuteranopia (green-blind)
#0070EB
Tritanopia (blue-blind)
#4D7D9C
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785aee;
/* rgb */ color: rgb(120, 90, 238);
/* oklch */ color: oklch(58.0% 0.212 287.1);
Tailwind
colors: {
  custom: {
    50: '#a88af4',
    500: '#785aee',
    950: '#000000',
  },
}
SCSS
$custom: #785aee;
$custom-light: #a88af4;
$custom-dark: #000000;
JSON
{
  "hex": "#785aee",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 238
  },
  "hsl": {
    "h": 252.162,
    "s": 81.319,
    "l": 64.314
  },
  "oklch": {
    "l": 0.57964,
    "c": 0.21215,
    "h": 287.1
  },
  "luminance": 0.17478
}

Semantic roles & 50–950 ramp

primary
#785AEE
secondary
#E1ECB8
accent
#DE08B2
background
#FAF8FF
surface
#F5F0FE
border
#CFCBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #785AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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