#5F4CD8#5F4CD8

#5F4CD8 is a mid, highly saturated blue. Relative luminance 0.126; OKLCH L 52.0% C 0.205 H 282.8°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD8
RGBrgb(95, 76, 216)
HSLhsl(248, 64%, 57%)
HSVhsv(248, 65%, 85%)
CMYKcmyk(56%, 64.8%, 0%, 15.3%)
CIE-LABlab(42.09, 45.48, -69.39)
CIE-LCHlch(42.09, 82.97, 303.24°)
OKLaboklab(52% 0.0454 -0.1995)
OKLCHoklch(52% 0.205 282.8)
XYZxyz(19.6946, 12.5584, 66.3387)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD8 #C5D84C
analogous
#4C7FD8 #5F4CD8 #A54CD8
triadic
#5F4CD8 #D85F4C #4CD85F
tetradic
#5F4CD8 #D84C7F #C5D84C #4CD8A5
square
#5F4CD8 #D84C7F #C5D84C #4CD8A5
split-complementary
#5F4CD8 #D8A54C #7FD84C
monochromatic
#2D1E8B #3D29BE #5F4CD8 #8C7EE3 #B9B1EE

Accessibility & contrast

On white

5.98
#5F4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#5F4CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD8
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD8#FFFFFF#000000##FFFFFF
##5F4CD81.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DC
Deuteranopia (green-blind)
#005FD5
Tritanopia (blue-blind)
#216F8B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4cd8;
/* rgb */ color: rgb(95, 76, 216);
/* oklch */ color: oklch(52.0% 0.205 282.8);
Tailwind
colors: {
  custom: {
    50: '#987fe5',
    500: '#5f4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd8;
$custom-light: #987fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd8",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 248.143,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52004,
    "c": 0.2046,
    "h": 282.8
  },
  "luminance": 0.1256
}

Semantic roles & 50–950 ramp

primary
#5F4CD8
secondary
#D5DCA4
accent
#E741D1
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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