#785DDB#785DDB

#785DDB is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.185 H 289.1°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#785DDB
RGBrgb(120, 93, 219)
HSLhsl(253, 64%, 61%)
HSVhsv(253, 58%, 86%)
CMYKcmyk(45.2%, 57.5%, 0%, 14.1%)
CIE-LABlab(48.18, 41.33, -61.12)
CIE-LCHlch(48.18, 73.78, 304.07°)
OKLaboklab(57.05% 0.0603 -0.1744)
OKLCHoklch(57.05% 0.185 289.1)
XYZxyz(24.4426, 16.9353, 68.9851)
Luminance0.1694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785DDB #C0DB5D
analogous
#5D81DB #785DDB #B75DDB
triadic
#785DDB #DB785D #5DDB78
tetradic
#785DDB #DB5D81 #C0DB5D #5DDBB7
square
#785DDB #DB5D81 #C0DB5D #5DDBB7
split-complementary
#785DDB #DBB75D #81DB5D
monochromatic
#3C229B #502ECD #785DDB #A28FE6 #CBC1F1

Accessibility & contrast

On white

4.79
#785DDB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#785DDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #785DDB
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785DDB#FFFFFF#000000##FFFFFF
##785DDB1.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075DF
Deuteranopia (green-blind)
#066FD8
Tritanopia (blue-blind)
#597993
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #785ddb;
/* rgb */ color: rgb(120, 93, 219);
/* oklch */ color: oklch(57.0% 0.185 289.1);
Tailwind
colors: {
  custom: {
    50: '#a58ce7',
    500: '#785ddb',
    950: '#000000',
  },
}
SCSS
$custom: #785ddb;
$custom-light: #a58ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#785ddb",
  "rgb": {
    "r": 120,
    "g": 93,
    "b": 219
  },
  "hsl": {
    "h": 252.857,
    "s": 63.636,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5705,
    "c": 0.18451,
    "h": 289.1
  },
  "luminance": 0.16936
}

Semantic roles & 50–950 ramp

primary
#785DDB
secondary
#D7E2B2
accent
#CB1AA5
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785DDB

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

Preview Lab → · Contrast checker → · Palette generator →

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