#5F4BE5#5F4BE5

#5F4BE5 is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.9% C 0.222 H 281.6°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#5F4BE5
RGBrgb(95, 75, 229)
HSLhsl(248, 75%, 60%)
HSVhsv(248, 67%, 90%)
CMYKcmyk(58.5%, 67.2%, 0%, 10.2%)
CIE-LABlab(42.94, 49.98, -75.41)
CIE-LCHlch(42.94, 90.47, 303.54°)
OKLaboklab(52.95% 0.0446 -0.2172)
OKLCHoklch(52.95% 0.222 281.6)
XYZxyz(21.3738, 13.1207, 75.5198)
Luminance0.1312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BE5 #D1E54B
analogous
#4B84E5 #5F4BE5 #AC4BE5
triadic
#5F4BE5 #E55F4B #4BE55F
tetradic
#5F4BE5 #E54B84 #D1E54B #4BE5AC
square
#5F4BE5 #E54B84 #D1E54B #4BE5AC
split-complementary
#5F4BE5 #E5AC4B #84E54B
monochromatic
#29179F #361FD4 #5F4BE5 #8F80ED #BEB6F4

Accessibility & contrast

On white

5.79
#5F4BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5F4BE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BE5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BE5#FFFFFF#000000##FFFFFF
##5F4BE51.005.793.625.79
#FFFFFF5.791.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BEA
Deuteranopia (green-blind)
#0060E2
Tritanopia (blue-blind)
#007392
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4be5;
/* rgb */ color: rgb(95, 75, 229);
/* oklch */ color: oklch(52.9% 0.222 281.6);
Tailwind
colors: {
  custom: {
    50: '#9a7fee',
    500: '#5f4be5',
    950: '#000000',
  },
}
SCSS
$custom: #5f4be5;
$custom-light: #9a7fee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4be5",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 229
  },
  "hsl": {
    "h": 247.792,
    "s": 74.757,
    "l": 59.608
  },
  "oklch": {
    "l": 0.5295,
    "c": 0.22168,
    "h": 281.6
  },
  "luminance": 0.13122
}

Semantic roles & 50–950 ramp

primary
#5F4BE5
secondary
#DCE4A8
accent
#F136D9
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5F4BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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