#785CEC#785CEC

#785CEC is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.1% C 0.207 H 287.0°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#785CEC
RGBrgb(120, 92, 236)
HSLhsl(252, 79%, 64%)
HSVhsv(252, 61%, 93%)
CMYKcmyk(49.2%, 61%, 0%, 7.5%)
CIE-LABlab(49.13, 46.75, -69.18)
CIE-LCHlch(49.13, 83.50, 304.05°)
OKLaboklab(58.12% 0.0607 -0.1981)
OKLCHoklch(58.12% 0.207 287)
XYZxyz(26.7088, 17.7023, 81.3502)
Luminance0.1770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CEC #D0EC5C
analogous
#5C88EC #785CEC #C05CEC
triadic
#785CEC #EC785C #5CEC78
tetradic
#785CEC #EC5C88 #D0EC5C #5CECC0
square
#785CEC #EC5C88 #D0EC5C #5CECC0
split-complementary
#785CEC #ECC05C #88EC5C
monochromatic
#3515B8 #4B25E6 #785CEC #A593F2 #D3CAF9

Accessibility & contrast

On white

4.62
#785CEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#785CEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785CEC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CEC#FFFFFF#000000##FFFFFF
##785CEC1.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0071E9
Tritanopia (blue-blind)
#4F7E9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #785cec;
/* rgb */ color: rgb(120, 92, 236);
/* oklch */ color: oklch(58.1% 0.207 287.0);
Tailwind
colors: {
  custom: {
    50: '#a78bf3',
    500: '#785cec',
    950: '#000000',
  },
}
SCSS
$custom: #785cec;
$custom-light: #a78bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#785cec",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 236
  },
  "hsl": {
    "h": 251.667,
    "s": 79.121,
    "l": 64.314
  },
  "oklch": {
    "l": 0.58121,
    "c": 0.20718,
    "h": 287
  },
  "luminance": 0.17703
}

Semantic roles & 50–950 ramp

primary
#785CEC
secondary
#E1EBB9
accent
#DB0AB3
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785CEC

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

Preview Lab → · Contrast checker → · Palette generator →

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