#785AE7#785AE7

#785AE7 is a mid, highly saturated violet. Relative luminance 0.171; OKLCH L 57.4% C 0.204 H 288.0°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#785AE7
RGBrgb(120, 90, 231)
HSLhsl(253, 75%, 63%)
HSVhsv(253, 61%, 91%)
CMYKcmyk(48.1%, 61%, 0%, 9.4%)
CIE-LABlab(48.35, 46.45, -67.63)
CIE-LCHlch(48.35, 82.05, 304.48°)
OKLaboklab(57.44% 0.063 -0.1935)
OKLCHoklch(57.44% 0.204 288)
XYZxyz(25.8215, 17.0738, 77.5208)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AE7 #C9E75A
analogous
#5A82E7 #785AE7 #BE5AE7
triadic
#785AE7 #E7785A #5AE778
tetradic
#785AE7 #E75A82 #C9E75A #5AE7BE
square
#785AE7 #E75A82 #C9E75A #5AE7BE
split-complementary
#785AE7 #E7BE5A #82E75A
monochromatic
#3919AD #4C25DF #785AE7 #A48FEF #CFC5F7

Accessibility & contrast

On white

4.76
#785AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#785AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785AE7
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AE7#FFFFFF#000000##FFFFFF
##785AE71.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#006FE4
Tritanopia (blue-blind)
#527B98
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #785ae7;
/* rgb */ color: rgb(120, 90, 231);
/* oklch */ color: oklch(57.4% 0.204 288.0);
Tailwind
colors: {
  custom: {
    50: '#a78af0',
    500: '#785ae7',
    950: '#000000',
  },
}
SCSS
$custom: #785ae7;
$custom-light: #a78af0;
$custom-dark: #000000;
JSON
{
  "hex": "#785ae7",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 252.766,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.5744,
    "c": 0.20355,
    "h": 288
  },
  "luminance": 0.17075
}

Semantic roles & 50–950 ramp

primary
#785AE7
secondary
#DDE8B5
accent
#D70FAC
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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