#5F48FE#5F48FE

#5F48FE is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.8% C 0.254 H 279.6°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#5F48FE
RGBrgb(95, 72, 254)
HSLhsl(248, 99%, 64%)
HSVhsv(248, 72%, 100%)
CMYKcmyk(62.6%, 71.7%, 0%, 0.4%)
CIE-LABlab(44.55, 59.03, -86.84)
CIE-LCHlch(44.55, 105.00, 304.21°)
OKLaboklab(54.76% 0.0424 -0.2506)
OKLCHoklch(54.76% 0.254 279.6)
XYZxyz(24.9204, 14.2214, 95.1785)
Luminance0.1422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F48FE #E7FE48
analogous
#488CFE #5F48FE #BA48FE
triadic
#5F48FE #FE5F48 #48FE5F
tetradic
#5F48FE #FE488C #E7FE48 #48FEBA
square
#5F48FE #FE488C #E7FE48 #48FEBA
split-complementary
#5F48FE #FEBA48 #8CFE48
monochromatic
#1B01CA #2A0BFE #5F48FE #9485FE #C9C2FF

Accessibility & contrast

On white

5.46
#5F48FE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5F48FE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F48FE
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F48FE#FFFFFF#000000##FFFFFF
##5F48FE1.005.463.845.46
#FFFFFF5.461.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0062FB
Tritanopia (blue-blind)
#007B9F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5f48fe;
/* rgb */ color: rgb(95, 72, 254);
/* oklch */ color: oklch(54.8% 0.254 279.6);
Tailwind
colors: {
  custom: {
    50: '#9e7eff',
    500: '#5f48fe',
    950: '#000000',
  },
}
SCSS
$custom: #5f48fe;
$custom-light: #9e7eff;
$custom-dark: #000000;
JSON
{
  "hex": "#5f48fe",
  "rgb": {
    "r": 95,
    "g": 72,
    "b": 254
  },
  "hsl": {
    "h": 247.582,
    "s": 98.913,
    "l": 63.922
  },
  "oklch": {
    "l": 0.54761,
    "c": 0.25415,
    "h": 279.6
  },
  "luminance": 0.14223
}

Semantic roles & 50–950 ramp

primary
#5F48FE
secondary
#E9F1B1
accent
#E600C8
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5F48FE

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

Preview Lab → · Contrast checker → · Palette generator →

#5F48FE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva