#785FDF#785FDF

#785FDF is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.7% C 0.187 H 288.1°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#785FDF
RGBrgb(120, 95, 223)
HSLhsl(252, 67%, 62%)
HSVhsv(252, 57%, 87%)
CMYKcmyk(46.2%, 57.4%, 0%, 12.5%)
CIE-LABlab(48.89, 41.32, -62.24)
CIE-LCHlch(48.89, 74.71, 303.58°)
OKLaboklab(57.66% 0.058 -0.1777)
OKLCHoklch(57.66% 0.187 288.1)
XYZxyz(25.1534, 17.5042, 71.8510)
Luminance0.1751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FDF #C6DF5F
analogous
#5F86DF #785FDF #B85FDF
triadic
#785FDF #DF785F #5FDF78
tetradic
#785FDF #DF5F86 #C6DF5F #5FDFB8
square
#785FDF #DF5F86 #C6DF5F #5FDFB8
split-complementary
#785FDF #DFB85F #86DF5F
monochromatic
#3A21A3 #4D2CD5 #785FDF #A392E9 #CEC5F3

Accessibility & contrast

On white

4.67
#785FDF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#785FDF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #785FDF
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FDF#FFFFFF#000000##FFFFFF
##785FDF1.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E3
Deuteranopia (green-blind)
#0071DC
Tritanopia (blue-blind)
#577C96
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #785fdf;
/* rgb */ color: rgb(120, 95, 223);
/* oklch */ color: oklch(57.7% 0.187 288.1);
Tailwind
colors: {
  custom: {
    50: '#a68dea',
    500: '#785fdf',
    950: '#000000',
  },
}
SCSS
$custom: #785fdf;
$custom-light: #a68dea;
$custom-dark: #000000;
JSON
{
  "hex": "#785fdf",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 223
  },
  "hsl": {
    "h": 251.719,
    "s": 66.667,
    "l": 62.353
  },
  "oklch": {
    "l": 0.57658,
    "c": 0.18691,
    "h": 288.1
  },
  "luminance": 0.17505
}

Semantic roles & 50–950 ramp

primary
#785FDF
secondary
#DBE4B6
accent
#CF17AB
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #785FDF

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

Preview Lab → · Contrast checker → · Palette generator →

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