#5F4BE4#5F4BE4

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

Color values

HEX#5F4BE4
RGBrgb(95, 75, 228)
HSLhsl(248, 74%, 59%)
HSVhsv(248, 67%, 89%)
CMYKcmyk(58.3%, 67.1%, 0%, 10.6%)
CIE-LABlab(42.86, 49.68, -74.98)
CIE-LCHlch(42.86, 89.94, 303.53°)
OKLaboklab(52.86% 0.0447 -0.2159)
OKLCHoklch(52.86% 0.22 281.7)
XYZxyz(21.2346, 13.0650, 74.7866)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4BE4 #D0E44B
analogous
#4B84E4 #5F4BE4 #AC4BE4
triadic
#5F4BE4 #E45F4B #4BE45F
tetradic
#5F4BE4 #E44B84 #D0E44B #4BE4AC
square
#5F4BE4 #E44B84 #D0E44B #4BE4AC
split-complementary
#5F4BE4 #E4AC4B #84E44B
monochromatic
#29189D #3720D2 #5F4BE4 #8E80EC #BEB5F4

Accessibility & contrast

On white

5.81
#5F4BE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5F4BE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4BE4
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4BE4#FFFFFF#000000##FFFFFF
##5F4BE41.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE9
Deuteranopia (green-blind)
#0060E1
Tritanopia (blue-blind)
#007391
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4be4;
/* rgb */ color: rgb(95, 75, 228);
/* oklch */ color: oklch(52.9% 0.220 281.7);
Tailwind
colors: {
  custom: {
    50: '#997fee',
    500: '#5f4be4',
    950: '#000000',
  },
}
SCSS
$custom: #5f4be4;
$custom-light: #997fee;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4be4",
  "rgb": {
    "r": 95,
    "g": 75,
    "b": 228
  },
  "hsl": {
    "h": 247.843,
    "s": 73.913,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52864,
    "c": 0.22048,
    "h": 281.7
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#5F4BE4
secondary
#DBE3A8
accent
#F137D8
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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