#5796F6#5796F6

#5796F6 is a light, vivid blue. Relative luminance 0.305; OKLCH L 67.6% C 0.157 H 258.6°. Best body text is #000000 at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#5796F6
RGBrgb(87, 150, 246)
HSLhsl(216, 90%, 65%)
HSVhsv(216, 65%, 96%)
CMYKcmyk(64.6%, 39%, 0%, 3.5%)
CIE-LABlab(62.07, 9.36, -54.05)
CIE-LCHlch(62.07, 54.86, 279.82°)
OKLaboklab(67.57% -0.031 -0.1539)
OKLCHoklch(67.57% 0.157 258.6)
XYZxyz(31.4654, 30.4897, 91.3978)
Luminance0.3049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5796F6 #F6B757
analogous
#57E6F6 #5796F6 #6757F6
triadic
#5796F6 #F65796 #96F657
tetradic
#5796F6 #F657E6 #F6B757 #57F667
square
#5796F6 #F657E6 #F6B757 #57F667
split-complementary
#5796F6 #F66757 #E6F657
monochromatic
#0B56C8 #1D72F3 #5796F6 #91BAF9 #CBDFFC

Accessibility & contrast

On white

2.96
#5796F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.10
#5796F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5796F6
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5796F6#FFFFFF#000000##000000
##5796F61.002.967.107.10
#FFFFFF2.961.0021.0021.00
#0000007.1021.001.001.00
##0000007.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9EFA
Deuteranopia (green-blind)
#538FF4
Tritanopia (blue-blind)
#00ACBA
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #5796f6;
/* rgb */ color: rgb(87, 150, 246);
/* oklch */ color: oklch(67.6% 0.157 258.6);
Tailwind
colors: {
  custom: {
    50: '#95b4f9',
    500: '#5796f6',
    950: '#000000',
  },
}
SCSS
$custom: #5796f6;
$custom-light: #95b4f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5796f6",
  "rgb": {
    "r": 87,
    "g": 150,
    "b": 246
  },
  "hsl": {
    "h": 216.226,
    "s": 89.831,
    "l": 65.294
  },
  "oklch": {
    "l": 0.67569,
    "c": 0.15695,
    "h": 258.6
  },
  "luminance": 0.30493
}

Semantic roles & 50–950 ramp

primary
#5796F6
secondary
#EFDABA
accent
#8B00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5796F6

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

Preview Lab → · Contrast checker → · Palette generator →

#5796F6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva