#785AAA#785AAA

#785AAA is a mid, vivid violet. Relative luminance 0.142; OKLCH L 53.4% C 0.125 H 299.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#785AAA
RGBrgb(120, 90, 170)
HSLhsl(263, 32%, 51%)
HSVhsv(263, 47%, 67%)
CMYKcmyk(29.4%, 47.1%, 0%, 33.3%)
CIE-LABlab(44.53, 29.68, -38.62)
CIE-LCHlch(44.53, 48.70, 307.54°)
OKLaboklab(53.39% 0.0613 -0.1084)
OKLCHoklch(53.39% 0.125 299.5)
XYZxyz(18.6559, 14.2076, 39.7819)
Luminance0.1421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785AAA #8CAA5A
analogous
#5A64AA #785AAA #A05AAA
triadic
#785AAA #AA785A #5AAA78
tetradic
#785AAA #AA5A64 #8CAA5A #5AAAA0
square
#785AAA #AA5A64 #8CAA5A #5AAAA0
split-complementary
#785AAA #AAA05A #64AA5A
monochromatic
#3F2F5B #5B4483 #785AAA #9982BF #BAABD4

Accessibility & contrast

On white

5.47
#785AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#785AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785AAA
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785AAA#FFFFFF#000000##FFFFFF
##785AAA1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4269AD
Deuteranopia (green-blind)
#4869A8
Tritanopia (blue-blind)
#6E687A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #785aaa;
/* rgb */ color: rgb(120, 90, 170);
/* oklch */ color: oklch(53.4% 0.125 299.5);
Tailwind
colors: {
  custom: {
    50: '#a189c4',
    500: '#785aaa',
    950: '#000000',
  },
}
SCSS
$custom: #785aaa;
$custom-light: #a189c4;
$custom-dark: #000000;
JSON
{
  "hex": "#785aaa",
  "rgb": {
    "r": 120,
    "g": 90,
    "b": 170
  },
  "hsl": {
    "h": 262.5,
    "s": 32,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53389,
    "c": 0.12452,
    "h": 299.5
  },
  "luminance": 0.14208
}

Semantic roles & 50–950 ramp

primary
#785AAA
secondary
#B4C29E
accent
#C860A1
background
#FAF8FC
surface
#F4F0F8
border
#CECBD1
text
#0F0B12
muted
#7F7C81

Preview Lab

Preview with #785AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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