#785AEA#785AEA

#785AEA is a mid, highly saturated violet. Relative luminance 0.172; OKLCH L 57.7% C 0.207 H 287.6°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#785AEA
RGBrgb(120, 90, 234)
HSLhsl(253, 77%, 64%)
HSVhsv(253, 62%, 92%)
CMYKcmyk(48.7%, 61.5%, 0%, 8.2%)
CIE-LABlab(48.57, 47.30, -68.98)
CIE-LCHlch(48.57, 83.64, 304.44°)
OKLaboklab(57.66% 0.0628 -0.1975)
OKLCHoklch(57.66% 0.207 287.6)
XYZxyz(26.2488, 17.2447, 79.7714)
Luminance0.1725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AEA #CCEA5A
analogous
#5A84EA #785AEA #C05AEA
triadic
#785AEA #EA785A #5AEA78
tetradic
#785AEA #EA5A84 #CCEA5A #5AEAC0
square
#785AEA #EA5A84 #CCEA5A #5AEAC0
split-complementary
#785AEA #EAC05A #84EA5A
monochromatic
#3717B3 #4C24E3 #785AEA #A490F1 #D1C7F8

Accessibility & contrast

On white

4.72
#785AEA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.45
#785AEA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785AEA
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AEA#FFFFFF#000000##FFFFFF
##785AEA1.004.724.454.72
#FFFFFF4.721.0021.001.00
#0000004.4521.001.0021.00
##FFFFFF4.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EF
Deuteranopia (green-blind)
#006FE7
Tritanopia (blue-blind)
#507C9A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #785aea;
/* rgb */ color: rgb(120, 90, 234);
/* oklch */ color: oklch(57.7% 0.207 287.6);
Tailwind
colors: {
  custom: {
    50: '#a78af2',
    500: '#785aea',
    950: '#000000',
  },
}
SCSS
$custom: #785aea;
$custom-light: #a78af2;
$custom-dark: #000000;
JSON
{
  "hex": "#785aea",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 234
  },
  "hsl": {
    "h": 252.5,
    "s": 77.419,
    "l": 63.529
  },
  "oklch": {
    "l": 0.57663,
    "c": 0.20725,
    "h": 287.6
  },
  "luminance": 0.17246
}

Semantic roles & 50–950 ramp

primary
#785AEA
secondary
#DFE9B6
accent
#DA0CAF
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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