#785CD7#785CD7

#785CD7 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.6% C 0.181 H 289.9°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#785CD7
RGBrgb(120, 92, 215)
HSLhsl(254, 61%, 60%)
HSVhsv(254, 57%, 84%)
CMYKcmyk(44.2%, 57.2%, 0%, 15.7%)
CIE-LABlab(47.69, 40.77, -59.63)
CIE-LCHlch(47.69, 72.24, 304.36°)
OKLaboklab(56.61% 0.0614 -0.17)
OKLCHoklch(56.61% 0.181 289.9)
XYZxyz(23.8352, 16.5528, 66.2160)
Luminance0.1655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CD7 #BBD75C
analogous
#5C7DD7 #785CD7 #B65CD7
triadic
#785CD7 #D7785C #5CD778
tetradic
#785CD7 #D75C7D #BBD75C #5CD7B6
square
#785CD7 #D75C7D #BBD75C #5CD7B6
split-complementary
#785CD7 #D7B65C #7DD75C
monochromatic
#3E2494 #5230C5 #785CD7 #A18DE3 #C9BEEF

Accessibility & contrast

On white

4.87
#785CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#785CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CD7
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CD7#FFFFFF#000000##FFFFFF
##785CD71.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0774DB
Deuteranopia (green-blind)
#126ED4
Tritanopia (blue-blind)
#5C7791
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785cd7;
/* rgb */ color: rgb(120, 92, 215);
/* oklch */ color: oklch(56.6% 0.181 289.9);
Tailwind
colors: {
  custom: {
    50: '#a58be4',
    500: '#785cd7',
    950: '#000000',
  },
}
SCSS
$custom: #785cd7;
$custom-light: #a58be4;
$custom-dark: #000000;
JSON
{
  "hex": "#785cd7",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 215
  },
  "hsl": {
    "h": 253.659,
    "s": 60.591,
    "l": 60.196
  },
  "oklch": {
    "l": 0.56608,
    "c": 0.18077,
    "h": 289.9
  },
  "luminance": 0.16554
}

Semantic roles & 50–950 ramp

primary
#785CD7
secondary
#D4DFB0
accent
#C81DA1
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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