#5872FE#5872FE

#5872FE is a mid, highly saturated blue. Relative luminance 0.213; OKLCH L 61.0% C 0.209 H 270.9°. Best body text is #000000 at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#5872FE
RGBrgb(88, 114, 254)
HSLhsl(231, 99%, 67%)
HSVhsv(231, 65%, 100%)
CMYKcmyk(65.4%, 55.1%, 0%, 0.4%)
CIE-LABlab(53.24, 33.97, -72.66)
CIE-LCHlch(53.24, 80.21, 295.06°)
OKLaboklab(60.99% 0.0034 -0.209)
OKLCHoklch(60.99% 0.209 270.9)
XYZxyz(27.9252, 21.2625, 96.3791)
Luminance0.2127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5872FE #FEE458
analogous
#58C5FE #5872FE #9158FE
triadic
#5872FE #FE5872 #72FE58
tetradic
#5872FE #FE58C5 #FEE458 #58FE91
square
#5872FE #FE58C5 #FEE458 #58FE91
split-complementary
#5872FE #FE9158 #C5FE58
monochromatic
#0123DA #1B3FFE #5872FE #95A5FE #D2D9FF

Accessibility & contrast

On white

4.00
#5872FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.25
#5872FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5872FE
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5872FE#FFFFFF#000000##000000
##5872FE1.004.005.255.25
#FFFFFF4.001.0021.0021.00
#0000005.2521.001.001.00
##0000005.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0087FF
Deuteranopia (green-blind)
#0078FB
Tritanopia (blue-blind)
#0094AD
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5872fe;
/* rgb */ color: rgb(88, 114, 254);
/* oklch */ color: oklch(61.0% 0.209 270.9);
Tailwind
colors: {
  custom: {
    50: '#989aff',
    500: '#5872fe',
    950: '#000000',
  },
}
SCSS
$custom: #5872fe;
$custom-light: #989aff;
$custom-dark: #000000;
JSON
{
  "hex": "#5872fe",
  "rgb": {
    "r": 88,
    "g": 114,
    "b": 254
  },
  "hsl": {
    "h": 230.602,
    "s": 98.81,
    "l": 67.059
  },
  "oklch": {
    "l": 0.60989,
    "c": 0.20905,
    "h": 270.9
  },
  "luminance": 0.21265
}

Semantic roles & 50–950 ramp

primary
#5872FE
secondary
#F3EBBF
accent
#C200E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5872FE

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

Preview Lab → · Contrast checker → · Palette generator →

#5872FE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva