#787BDB#787BDB

#787BDB is a light, vivid blue. Relative luminance 0.233; OKLCH L 62.4% C 0.143 H 280.1°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#787BDB
RGBrgb(120, 123, 219)
HSLhsl(238, 58%, 66%)
HSVhsv(238, 45%, 86%)
CMYKcmyk(45.2%, 43.8%, 0%, 14.1%)
CIE-LABlab(55.35, 23.60, -49.63)
CIE-LCHlch(55.35, 54.95, 295.43°)
OKLaboklab(62.42% 0.0249 -0.1405)
OKLCHoklch(62.42% 0.143 280.1)
XYZxyz(27.6110, 23.2721, 70.0412)
Luminance0.2327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#787BDB #DBD878
analogous
#78ADDB #787BDB #A778DB
triadic
#787BDB #DB787B #7BDB78
tetradic
#787BDB #DB78AD #DBD878 #78DBA7
square
#787BDB #DB78AD #DBD878 #78DBA7
split-complementary
#787BDB #DBA778 #ADDB78
monochromatic
#2E31AB #484CCE #787BDB #A8AAE8 #D9D9F5

Accessibility & contrast

On white

3.71
#787BDB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.65
#787BDB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #787BDB
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##787BDB#FFFFFF#000000##000000
##787BDB1.003.715.655.65
#FFFFFF3.711.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5688DF
Deuteranopia (green-blind)
#4F81D9
Tritanopia (blue-blind)
#568FA0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #787bdb;
/* rgb */ color: rgb(120, 123, 219);
/* oklch */ color: oklch(62.4% 0.143 280.1);
Tailwind
colors: {
  custom: {
    50: '#a4a1e6',
    500: '#787bdb',
    950: '#000000',
  },
}
SCSS
$custom: #787bdb;
$custom-light: #a4a1e6;
$custom-dark: #000000;
JSON
{
  "hex": "#787bdb",
  "rgb": {
    "r": 120,
    "g": 123,
    "b": 219
  },
  "hsl": {
    "h": 238.182,
    "s": 57.895,
    "l": 66.471
  },
  "oklch": {
    "l": 0.62421,
    "c": 0.14271,
    "h": 280.1
  },
  "luminance": 0.23273
}

Semantic roles & 50–950 ramp

primary
#787BDB
secondary
#E7E6C7
accent
#C020C5
background
#FAF9FE
surface
#F4F2FC
border
#CECCD5
text
#100E16
muted
#7F7E84

Preview Lab

Preview with #787BDB

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

Preview Lab → · Contrast checker → · Palette generator →

#787BDB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva