#785DA2#785DA2

#785DA2 is a mid, moderate violet. Relative luminance 0.144; OKLCH L 53.5% C 0.109 H 300.8°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#785DA2
RGBrgb(120, 93, 162)
HSLhsl(263, 27%, 50%)
HSVhsv(263, 43%, 64%)
CMYKcmyk(25.9%, 42.6%, 0%, 36.5%)
CIE-LABlab(44.84, 25.83, -33.40)
CIE-LCHlch(44.84, 42.22, 307.72°)
OKLaboklab(53.49% 0.0557 -0.0932)
OKLCHoklch(53.49% 0.109 300.8)
XYZxyz(18.1802, 14.4303, 36.0030)
Luminance0.1443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DA2 #87A25D
analogous
#5D65A2 #785DA2 #9A5DA2
triadic
#785DA2 #A2785D #5DA278
tetradic
#785DA2 #A25D65 #87A25D #5DA29A
square
#785DA2 #A25D65 #87A25D #5DA29A
split-complementary
#785DA2 #A29A5D #65A25D
monochromatic
#3E3054 #5B477B #785DA2 #9884B8 #B9ABCF

Accessibility & contrast

On white

5.40
#785DA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#785DA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DA2
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DA2#FFFFFF#000000##FFFFFF
##785DA21.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B6AA5
Deuteranopia (green-blind)
#506AA0
Tritanopia (blue-blind)
#706978
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #785da2;
/* rgb */ color: rgb(120, 93, 162);
/* oklch */ color: oklch(53.5% 0.109 300.8);
Tailwind
colors: {
  custom: {
    50: '#a08bbe',
    500: '#785da2',
    950: '#000000',
  },
}
SCSS
$custom: #785da2;
$custom-light: #a08bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#785da2",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 162
  },
  "hsl": {
    "h": 263.478,
    "s": 27.059,
    "l": 50
  },
  "oklch": {
    "l": 0.5349,
    "c": 0.10858,
    "h": 300.8
  },
  "luminance": 0.1443
}

Semantic roles & 50–950 ramp

primary
#785DA2
secondary
#B1BD9E
accent
#C3649E
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #785DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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