#5796FA#5796FA

#5796FA is a light, vivid blue. Relative luminance 0.307; OKLCH L 67.8% C 0.162 H 259.3°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#5796FA
RGBrgb(87, 150, 250)
HSLhsl(217, 94%, 66%)
HSVhsv(217, 65%, 98%)
CMYKcmyk(65.2%, 40%, 0%, 2%)
CIE-LABlab(62.29, 10.71, -55.91)
CIE-LCHlch(62.29, 56.93, 280.84°)
OKLaboklab(67.8% -0.0302 -0.1593)
OKLCHoklch(67.8% 0.162 259.3)
XYZxyz(32.0860, 30.7379, 94.6660)
Luminance0.3074 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5796FA #FABB57
analogous
#57E7FA #5796FA #6957FA
triadic
#5796FA #FA5796 #96FA57
tetradic
#5796FA #FA57E7 #FABB57 #57FA69
square
#5796FA #FA57E7 #FABB57 #57FA69
split-complementary
#5796FA #FA6957 #E7FA57
monochromatic
#0654D0 #1C71F8 #5796FA #92BBFC #CEE0FE

Accessibility & contrast

On white

2.94
#5796FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#5796FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #5796FA
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5796FA#FFFFFF#000000##000000
##5796FA1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#689FFE
Deuteranopia (green-blind)
#5090F8
Tritanopia (blue-blind)
#00ADBC
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #5796fa;
/* rgb */ color: rgb(87, 150, 250);
/* oklch */ color: oklch(67.8% 0.162 259.3);
Tailwind
colors: {
  custom: {
    50: '#95b4fc',
    500: '#5796fa',
    950: '#000000',
  },
}
SCSS
$custom: #5796fa;
$custom-light: #95b4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#5796fa",
  "rgb": {
    "r": 87,
    "g": 150,
    "b": 250
  },
  "hsl": {
    "h": 216.81,
    "s": 94.22,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67801,
    "c": 0.16214,
    "h": 259.3
  },
  "luminance": 0.30741
}

Semantic roles & 50–950 ramp

primary
#5796FA
secondary
#F1DCBC
accent
#8D00E6
background
#F9FBFF
surface
#F2F6FF
border
#CCD0D7
text
#0F1117
muted
#7E8085

Preview Lab

Preview with #5796FA

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

Preview Lab → · Contrast checker → · Palette generator →

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