#785EA2#785EA2

#785EA2 is a mid, moderate violet. Relative luminance 0.146; OKLCH L 53.7% C 0.107 H 300.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#785EA2
RGBrgb(120, 94, 162)
HSLhsl(263, 27%, 50%)
HSVhsv(263, 42%, 64%)
CMYKcmyk(25.9%, 42%, 0%, 36.5%)
CIE-LABlab(45.09, 25.23, -33.01)
CIE-LCHlch(45.09, 41.55, 307.39°)
OKLaboklab(53.68% 0.0542 -0.0921)
OKLCHoklch(53.68% 0.107 300.5)
XYZxyz(18.2686, 14.6070, 36.0324)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785EA2 #88A25E
analogous
#5E66A2 #785EA2 #9A5EA2
triadic
#785EA2 #A2785E #5EA278
tetradic
#785EA2 #A25E66 #88A25E #5EA29A
square
#785EA2 #A25E66 #88A25E #5EA29A
split-complementary
#785EA2 #A29A5E #66A25E
monochromatic
#3F3155 #5B477B #785EA2 #9985B8 #B9ACCF

Accessibility & contrast

On white

5.36
#785EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#785EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785EA2
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785EA2#FFFFFF#000000##FFFFFF
##785EA21.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C6AA5
Deuteranopia (green-blind)
#516AA0
Tritanopia (blue-blind)
#706A78
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #785ea2;
/* rgb */ color: rgb(120, 94, 162);
/* oklch */ color: oklch(53.7% 0.107 300.5);
Tailwind
colors: {
  custom: {
    50: '#a08cbe',
    500: '#785ea2',
    950: '#000000',
  },
}
SCSS
$custom: #785ea2;
$custom-light: #a08cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#785ea2",
  "rgb": {
    "r": 120,
    "g": 94,
    "b": 162
  },
  "hsl": {
    "h": 262.941,
    "s": 26.772,
    "l": 50.196
  },
  "oklch": {
    "l": 0.53677,
    "c": 0.10686,
    "h": 300.5
  },
  "luminance": 0.14607
}

Semantic roles & 50–950 ramp

primary
#785EA2
secondary
#B1BD9F
accent
#C3659F
background
#FAF8FB
surface
#F3F0F6
border
#CDCBD0
text
#0F0C12
muted
#7F7D81

Preview Lab

Preview with #785EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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