#5F4BD8#5F4BD8

#5F4BD8 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.9% C 0.206 H 283.0°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5F4BD8
RGBrgb(95, 75, 216)
HSLhsl(249, 64%, 57%)
HSVhsv(249, 65%, 85%)
CMYKcmyk(56%, 65.3%, 0%, 15.3%)
CIE-LABlab(41.88, 46.05, -69.74)
CIE-LCHlch(41.88, 83.57, 303.44°)
OKLaboklab(51.85% 0.0463 -0.2005)
OKLCHoklch(51.85% 0.206 283)
XYZxyz(19.6262, 12.4217, 66.3159)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BD8 #C4D84B
analogous
#4B7DD8 #5F4BD8 #A64BD8
triadic
#5F4BD8 #D85F4B #4BD85F
tetradic
#5F4BD8 #D84B7D #C4D84B #4BD8A6
square
#5F4BD8 #D84B7D #C4D84B #4BD8A6
split-complementary
#5F4BD8 #D8A64B #7DD84B
monochromatic
#2D1E8B #3E29BD #5F4BD8 #8C7DE3 #B8B0EE

Accessibility & contrast

On white

6.03
#5F4BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5F4BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BD8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BD8#FFFFFF#000000##FFFFFF
##5F4BD81.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f4bd8;
/* rgb */ color: rgb(95, 75, 216);
/* oklch */ color: oklch(51.9% 0.206 283.0);
Tailwind
colors: {
  custom: {
    50: '#987fe5',
    500: '#5f4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #5f4bd8;
$custom-light: #987fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4bd8",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 248.511,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51851,
    "c": 0.20579,
    "h": 283
  },
  "luminance": 0.12423
}

Semantic roles & 50–950 ramp

primary
#5F4BD8
secondary
#D4DCA3
accent
#E740D0
background
#FAF7FE
surface
#F3EEFC
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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