#785CCC#785CCC

#785CCC is a mid, vivid violet. Relative luminance 0.160; OKLCH L 55.9% C 0.167 H 291.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#785CCC
RGBrgb(120, 92, 204)
HSLhsl(255, 52%, 58%)
HSVhsv(255, 55%, 80%)
CMYKcmyk(41.2%, 54.9%, 0%, 20%)
CIE-LABlab(46.98, 37.68, -54.48)
CIE-LCHlch(46.98, 66.24, 304.67°)
OKLaboklab(55.86% 0.0613 -0.1549)
OKLCHoklch(55.86% 0.167 291.6)
XYZxyz(22.4690, 16.0063, 59.0207)
Luminance0.1601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CCC #B0CC5C
analogous
#5C78CC #785CCC #B05CCC
triadic
#785CCC #CC785C #5CCC78
tetradic
#785CCC #CC5C78 #B0CC5C #5CCCB0
square
#785CCC #CC5C78 #B0CC5C #5CCCB0
split-complementary
#785CCC #CCB05C #78CC5C
monochromatic
#402984 #5738B3 #785CCC #9F8BDB #C5B9E9

Accessibility & contrast

On white

5.00
#785CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#785CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CCC
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CCC#FFFFFF#000000##FFFFFF
##785CCC1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2471D0
Deuteranopia (green-blind)
#2A6DCA
Tritanopia (blue-blind)
#61748B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #785ccc;
/* rgb */ color: rgb(120, 92, 204);
/* oklch */ color: oklch(55.9% 0.167 291.6);
Tailwind
colors: {
  custom: {
    50: '#a48bdc',
    500: '#785ccc',
    950: '#000000',
  },
}
SCSS
$custom: #785ccc;
$custom-light: #a48bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#785ccc",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 204
  },
  "hsl": {
    "h": 255,
    "s": 52.336,
    "l": 58.039
  },
  "oklch": {
    "l": 0.55858,
    "c": 0.16657,
    "h": 291.6
  },
  "luminance": 0.16007
}

Semantic roles & 50–950 ramp

primary
#785CCC
secondary
#CDD8AC
accent
#DC4CB8
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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