#5981F7#5981F7

#5981F7 is a light, vivid blue. Relative luminance 0.245; OKLCH L 63.4% C 0.182 H 267.1°. Best body text is #000000 at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5981F7
RGBrgb(89, 129, 247)
HSLhsl(225, 91%, 66%)
HSVhsv(225, 64%, 97%)
CMYKcmyk(64%, 47.8%, 0%, 3.1%)
CIE-LABlab(56.62, 22.62, -63.32)
CIE-LCHlch(56.62, 67.24, 289.66°)
OKLaboklab(63.42% -0.0093 -0.1813)
OKLCHoklch(63.42% 0.182 267.1)
XYZxyz(28.7528, 24.5371, 91.1985)
Luminance0.2454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5981F7 #F7CF59
analogous
#59D0F7 #5981F7 #8059F7
triadic
#5981F7 #F75981 #81F759
tetradic
#5981F7 #F759D0 #F7CF59 #59F780
square
#5981F7 #F759D0 #F7CF59 #59F780
split-complementary
#5981F7 #F78059 #D0F759
monochromatic
#0A3BCC #1F55F4 #5981F7 #93ADFA #CEDAFD

Accessibility & contrast

On white

3.55
#5981F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.91
#5981F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5981F7
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5981F7#FFFFFF#000000##000000
##5981F71.003.555.915.91
#FFFFFF3.551.0021.0021.00
#0000005.9121.001.001.00
##0000005.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#438FFB
Deuteranopia (green-blind)
#1F81F5
Tritanopia (blue-blind)
#009CB0
Achromatopsia (no color)
#888888

Design tokens & code

CSS
--color: #5981f7;
/* rgb */ color: rgb(89, 129, 247);
/* oklch */ color: oklch(63.4% 0.182 267.1);
Tailwind
colors: {
  custom: {
    50: '#96a5fa',
    500: '#5981f7',
    950: '#000000',
  },
}
SCSS
$custom: #5981f7;
$custom-light: #96a5fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5981f7",
  "rgb": {
    "r": 89,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 224.81,
    "s": 90.805,
    "l": 65.882
  },
  "oklch": {
    "l": 0.63416,
    "c": 0.18156,
    "h": 267.1
  },
  "luminance": 0.2454
}

Semantic roles & 50–950 ramp

primary
#5981F7
secondary
#F0E3BC
accent
#AB00E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F17
muted
#7F7F85

Preview Lab

Preview with #5981F7

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

Preview Lab → · Contrast checker → · Palette generator →

#5981F7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva