#785FEB#785FEB

#785FEB is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.5% C 0.202 H 286.6°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#785FEB
RGBrgb(120, 95, 235)
HSLhsl(251, 78%, 65%)
HSVhsv(251, 60%, 92%)
CMYKcmyk(48.9%, 59.6%, 0%, 7.8%)
CIE-LABlab(49.71, 44.77, -67.69)
CIE-LCHlch(49.71, 81.15, 303.48°)
OKLaboklab(58.52% 0.0576 -0.1937)
OKLCHoklch(58.52% 0.202 286.6)
XYZxyz(26.8289, 18.1744, 80.6755)
Luminance0.1818 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#785FEB #D2EB5F
analogous
#5F8CEB #785FEB #BE5FEB
triadic
#785FEB #EB785F #5FEB78
tetradic
#785FEB #EB5F8C #D2EB5F #5FEBBE
square
#785FEB #EB5F8C #D2EB5F #5FEBBE
split-complementary
#785FEB #EBBE5F #8CEB5F
monochromatic
#3417B9 #4A29E4 #785FEB #A695F2 #D4CCF9

Accessibility & contrast

On white

4.53
#785FEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#785FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #785FEB
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##785FEB#FFFFFF#000000##000000
##785FEB1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#4F809C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #785feb;
/* rgb */ color: rgb(120, 95, 235);
/* oklch */ color: oklch(58.5% 0.202 286.6);
Tailwind
colors: {
  custom: {
    50: '#a78df2',
    500: '#785feb',
    950: '#000000',
  },
}
SCSS
$custom: #785feb;
$custom-light: #a78df2;
$custom-dark: #000000;
JSON
{
  "hex": "#785feb",
  "rgb": {
    "r": 120,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 250.714,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58519,
    "c": 0.2021,
    "h": 286.6
  },
  "luminance": 0.18176
}

Semantic roles & 50–950 ramp

primary
#785FEB
secondary
#E2EBBB
accent
#DA0BB5
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C17
muted
#7F7D85

Preview Lab

Preview with #785FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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