#5F4AFB#5F4AFB

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

Color values

HEX#5F4AFB
RGBrgb(95, 74, 251)
HSLhsl(247, 96%, 64%)
HSVhsv(247, 71%, 98%)
CMYKcmyk(62.2%, 70.5%, 0%, 1.6%)
CIE-LABlab(44.65, 57.11, -84.99)
CIE-LCHlch(44.65, 102.40, 303.90°)
OKLaboklab(54.75% 0.0417 -0.2452)
OKLCHoklch(54.75% 0.249 279.6)
XYZxyz(24.5751, 14.2936, 92.7120)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4AFB #E6FB4A
analogous
#4A8DFB #5F4AFB #B84AFB
triadic
#5F4AFB #FB5F4A #4AFB5F
tetradic
#5F4AFB #FB4A8D #E6FB4A #4AFBB8
square
#5F4AFB #FB4A8D #E6FB4A #4AFBB8
split-complementary
#5F4AFB #FBB84A #8DFB4A
monochromatic
#1B04C6 #2A0EFA #5F4AFB #9486FC #C9C2FE

Accessibility & contrast

On white

5.44
#5F4AFB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5F4AFB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4AFB
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4AFB#FFFFFF#000000##FFFFFF
##5F4AFB1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070FF
Deuteranopia (green-blind)
#0063F8
Tritanopia (blue-blind)
#007B9E
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5f4afb;
/* rgb */ color: rgb(95, 74, 251);
/* oklch */ color: oklch(54.8% 0.249 279.6);
Tailwind
colors: {
  custom: {
    50: '#9d7ffe',
    500: '#5f4afb',
    950: '#000000',
  },
}
SCSS
$custom: #5f4afb;
$custom-light: #9d7ffe;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4afb",
  "rgb": {
    "r": 95,
    "g": 74,
    "b": 251
  },
  "hsl": {
    "h": 247.119,
    "s": 95.676,
    "l": 63.725
  },
  "oklch": {
    "l": 0.54752,
    "c": 0.24874,
    "h": 279.6
  },
  "luminance": 0.14295
}

Semantic roles & 50–950 ramp

primary
#5F4AFB
secondary
#E8F0B1
accent
#E600CA
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#100A18
muted
#7F7C86

Preview Lab

Preview with #5F4AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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