#785FCC#785FCC

#785FCC is a mid, vivid violet. Relative luminance 0.165; OKLCH L 56.4% C 0.162 H 290.8°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#785FCC
RGBrgb(120, 95, 204)
HSLhsl(254, 52%, 59%)
HSVhsv(254, 53%, 80%)
CMYKcmyk(41.2%, 53.4%, 0%, 20%)
CIE-LABlab(47.67, 35.93, -53.38)
CIE-LCHlch(47.67, 64.34, 303.95°)
OKLaboklab(56.37% 0.0577 -0.1516)
OKLCHoklch(56.37% 0.162 290.8)
XYZxyz(22.7340, 16.5364, 59.1091)
Luminance0.1654 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FCC #B3CC5F
analogous
#5F7CCC #785FCC #AE5FCC
triadic
#785FCC #CC785F #5FCC78
tetradic
#785FCC #CC5F7C #B3CC5F #5FCCAE
square
#785FCC #CC5F7C #B3CC5F #5FCCAE
split-complementary
#785FCC #CCAE5F #7CCC5F
monochromatic
#402B86 #5639B4 #785FCC #9F8DDB #C6BCEA

Accessibility & contrast

On white

4.88
#785FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #785FCC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FCC#FFFFFF#000000##FFFFFF
##785FCC1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C73D0
Deuteranopia (green-blind)
#306FCA
Tritanopia (blue-blind)
#61768C
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #785fcc;
/* rgb */ color: rgb(120, 95, 204);
/* oklch */ color: oklch(56.4% 0.162 290.8);
Tailwind
colors: {
  custom: {
    50: '#a48ddc',
    500: '#785fcc',
    950: '#000000',
  },
}
SCSS
$custom: #785fcc;
$custom-light: #a48ddc;
$custom-dark: #000000;
JSON
{
  "hex": "#785fcc",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 204
  },
  "hsl": {
    "h": 253.761,
    "s": 51.659,
    "l": 58.627
  },
  "oklch": {
    "l": 0.56368,
    "c": 0.16222,
    "h": 290.8
  },
  "luminance": 0.16537
}

Semantic roles & 50–950 ramp

primary
#785FCC
secondary
#CFD9AE
accent
#DB4DBA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #785FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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