#785BEC#785BEC

#785BEC is a mid, highly saturated violet. Relative luminance 0.175; OKLCH L 58.0% C 0.208 H 287.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#785BEC
RGBrgb(120, 91, 236)
HSLhsl(252, 79%, 64%)
HSVhsv(252, 61%, 93%)
CMYKcmyk(49.2%, 61.4%, 0%, 7.5%)
CIE-LABlab(48.92, 47.31, -69.53)
CIE-LCHlch(48.92, 84.10, 304.24°)
OKLaboklab(57.97% 0.0617 -0.1991)
OKLCHoklch(57.97% 0.208 287.2)
XYZxyz(26.6227, 17.5301, 81.3215)
Luminance0.1753 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785BEC #CFEC5B
analogous
#5B87EC #785BEC #C15BEC
triadic
#785BEC #EC785B #5BEC78
tetradic
#785BEC #EC5B87 #CFEC5B #5BECC1
square
#785BEC #EC5B87 #CFEC5B #5BECC1
split-complementary
#785BEC #ECC15B #87EC5B
monochromatic
#3615B7 #4B24E6 #785BEC #A592F2 #D2C9F9

Accessibility & contrast

On white

4.66
#785BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#785BEC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785BEC
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785BEC#FFFFFF#000000##FFFFFF
##785BEC1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078F1
Deuteranopia (green-blind)
#0070E9
Tritanopia (blue-blind)
#4F7D9B
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785bec;
/* rgb */ color: rgb(120, 91, 236);
/* oklch */ color: oklch(58.0% 0.208 287.2);
Tailwind
colors: {
  custom: {
    50: '#a78bf3',
    500: '#785bec',
    950: '#000000',
  },
}
SCSS
$custom: #785bec;
$custom-light: #a78bf3;
$custom-dark: #000000;
JSON
{
  "hex": "#785bec",
  "rgb": {
    "r": 120,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 252,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.57967,
    "c": 0.20845,
    "h": 287.2
  },
  "luminance": 0.17531
}

Semantic roles & 50–950 ramp

primary
#785BEC
secondary
#E1EBB8
accent
#DC0AB2
background
#FAF8FF
surface
#F4F0FE
border
#CECBD6
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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