#785CDB#785CDB

#785CDB is a mid, vivid violet. Relative luminance 0.168; OKLCH L 56.9% C 0.186 H 289.3°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#785CDB
RGBrgb(120, 92, 219)
HSLhsl(253, 64%, 61%)
HSVhsv(253, 58%, 86%)
CMYKcmyk(45.2%, 58%, 0%, 14.1%)
CIE-LABlab(47.96, 41.90, -61.48)
CIE-LCHlch(47.96, 74.40, 304.28°)
OKLaboklab(56.89% 0.0614 -0.1754)
OKLCHoklch(56.89% 0.186 289.3)
XYZxyz(24.3554, 16.7609, 68.9560)
Luminance0.1676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785CDB #BFDB5C
analogous
#5C7FDB #785CDB #B75CDB
triadic
#785CDB #DB785C #5CDB78
tetradic
#785CDB #DB5C7F #BFDB5C #5CDBB7
square
#785CDB #DB5C7F #BFDB5C #5CDBB7
split-complementary
#785CDB #DBB75C #7FDB5C
monochromatic
#3D229A #502DCD #785CDB #A28EE6 #CBC0F1

Accessibility & contrast

On white

4.82
#785CDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#785CDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785CDB
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785CDB#FFFFFF#000000##FFFFFF
##785CDB1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0074DF
Deuteranopia (green-blind)
#006FD8
Tritanopia (blue-blind)
#597893
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #785cdb;
/* rgb */ color: rgb(120, 92, 219);
/* oklch */ color: oklch(56.9% 0.186 289.3);
Tailwind
colors: {
  custom: {
    50: '#a58be7',
    500: '#785cdb',
    950: '#000000',
  },
}
SCSS
$custom: #785cdb;
$custom-light: #a58be7;
$custom-dark: #000000;
JSON
{
  "hex": "#785cdb",
  "rgb": {
    "r": 120,
    "g": 92,
    "b": 219
  },
  "hsl": {
    "h": 253.228,
    "s": 63.819,
    "l": 60.98
  },
  "oklch": {
    "l": 0.56888,
    "c": 0.18587,
    "h": 289.3
  },
  "luminance": 0.16762
}

Semantic roles & 50–950 ramp

primary
#785CDB
secondary
#D7E1B1
accent
#CC1AA4
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785CDB

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

Preview Lab → · Contrast checker → · Palette generator →

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