#786FFB#786FFB

#786FFB is a light, highly saturated blue. Relative luminance 0.223; OKLCH L 62.3% C 0.202 H 281.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#786FFB
RGBrgb(120, 111, 251)
HSLhsl(244, 95%, 71%)
HSVhsv(244, 56%, 98%)
CMYKcmyk(52.2%, 55.8%, 0%, 1.6%)
CIE-LABlab(54.37, 40.25, -69.06)
CIE-LCHlch(54.37, 79.94, 300.23°)
OKLaboklab(62.3% 0.0409 -0.1977)
OKLCHoklch(62.3% 0.202 281.7)
XYZxyz(30.8374, 22.3252, 93.9323)
Luminance0.2233 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#786FFB #F2FB6F
analogous
#6FACFB #786FFB #BE6FFB
triadic
#786FFB #FB786F #6FFB78
tetradic
#786FFB #FB6FAC #F2FB6F #6FFBBE
square
#786FFB #FB6FAC #F2FB6F #6FFBBE
split-complementary
#786FFB #FBBE6F #ACFB6F
monochromatic
#1506E9 #4033F9 #786FFB #B0ABFD #E3E1FE

Accessibility & contrast

On white

3.84
#786FFB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#786FFB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #786FFB
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##786FFB#FFFFFF#000000##000000
##786FFB1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#007DF8
Tritanopia (blue-blind)
#408FAA
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #786ffb;
/* rgb */ color: rgb(120, 111, 251);
/* oklch */ color: oklch(62.3% 0.202 281.7);
Tailwind
colors: {
  custom: {
    50: '#a898fd',
    500: '#786ffb',
    950: '#000000',
  },
}
SCSS
$custom: #786ffb;
$custom-light: #a898fd;
$custom-dark: #000000;
JSON
{
  "hex": "#786ffb",
  "rgb": {
    "r": 120,
    "g": 111,
    "b": 251
  },
  "hsl": {
    "h": 243.857,
    "s": 94.595,
    "l": 70.98
  },
  "oklch": {
    "l": 0.62301,
    "c": 0.20187,
    "h": 281.7
  },
  "luminance": 0.22327
}

Semantic roles & 50–950 ramp

primary
#786FFB
secondary
#F3F6D0
accent
#E600D7
background
#FBF9FF
surface
#F6F2FF
border
#D0CCD7
text
#110E18
muted
#807E86

Preview Lab

Preview with #786FFB

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

Preview Lab → · Contrast checker → · Palette generator →

#786FFB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva