#5877DF#5877DF

#5877DF is a mid, vivid blue. Relative luminance 0.206; OKLCH L 59.8% C 0.162 H 268.7°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5877DF
RGBrgb(88, 119, 223)
HSLhsl(226, 68%, 61%)
HSVhsv(226, 61%, 87%)
CMYKcmyk(60.5%, 46.6%, 0%, 12.5%)
CIE-LABlab(52.50, 20.48, -56.55)
CIE-LCHlch(52.50, 60.14, 289.91°)
OKLaboklab(59.8% -0.0037 -0.1616)
OKLCHoklch(59.8% 0.162 268.7)
XYZxyz(23.9361, 20.5941, 72.5114)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5877DF #DFC058
analogous
#58BADF #5877DF #7C58DF
triadic
#5877DF #DF5877 #77DF58
tetradic
#5877DF #DF58BA #DFC058 #58DF7C
square
#5877DF #DF58BA #DFC058 #58DF7C
split-complementary
#5877DF #DF7C58 #BADF58
monochromatic
#1E3C9E #284FD2 #5877DF #8BA1E9 #BFCBF3

Accessibility & contrast

On white

4.10
#5877DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5877DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5877DF
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5877DF#FFFFFF#000000##000000
##5877DF1.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4484E3
Deuteranopia (green-blind)
#2D78DD
Tritanopia (blue-blind)
#008FA0
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5877df;
/* rgb */ color: rgb(88, 119, 223);
/* oklch */ color: oklch(59.8% 0.162 268.7);
Tailwind
colors: {
  custom: {
    50: '#939de9',
    500: '#5877df',
    950: '#000000',
  },
}
SCSS
$custom: #5877df;
$custom-light: #939de9;
$custom-dark: #000000;
JSON
{
  "hex": "#5877df",
  "rgb": {
    "r": 88,
    "g": 119,
    "b": 223
  },
  "hsl": {
    "h": 226.222,
    "s": 67.839,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59796,
    "c": 0.1616,
    "h": 268.7
  },
  "luminance": 0.20596
}

Semantic roles & 50–950 ramp

primary
#5877DF
secondary
#E3D7B0
accent
#A516D0
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5877DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5877DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva