#5F4CE1#5F4CE1

#5F4CE1 is a mid, highly saturated blue. Relative luminance 0.130; OKLCH L 52.8% C 0.216 H 281.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#5F4CE1
RGBrgb(95, 76, 225)
HSLhsl(248, 71%, 59%)
HSVhsv(248, 66%, 88%)
CMYKcmyk(57.8%, 66.2%, 0%, 11.8%)
CIE-LABlab(42.82, 48.22, -73.34)
CIE-LCHlch(42.82, 87.77, 303.32°)
OKLaboklab(52.76% 0.0443 -0.2111)
OKLCHoklch(52.76% 0.216 281.8)
XYZxyz(20.8901, 13.0366, 72.6351)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CE1 #CEE14C
analogous
#4C84E1 #5F4CE1 #AA4CE1
triadic
#5F4CE1 #E15F4C #4CE15F
tetradic
#5F4CE1 #E14C84 #CEE14C #4CE1AA
square
#5F4CE1 #E14C84 #CEE14C #4CE1AA
split-complementary
#5F4CE1 #E1AA4C #84E14C
monochromatic
#2A1A99 #3822CD #5F4CE1 #8E80EA #BDB5F3

Accessibility & contrast

On white

5.82
#5F4CE1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5F4CE1
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CE1#FFFFFF#000000##FFFFFF
##5F4CE11.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE6
Deuteranopia (green-blind)
#0060DE
Tritanopia (blue-blind)
#0C7290
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4ce1;
/* rgb */ color: rgb(95, 76, 225);
/* oklch */ color: oklch(52.8% 0.216 281.8);
Tailwind
colors: {
  custom: {
    50: '#997feb',
    500: '#5f4ce1',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ce1;
$custom-light: #997feb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ce1",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 225
  },
  "hsl": {
    "h": 247.651,
    "s": 71.292,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52756,
    "c": 0.2157,
    "h": 281.8
  },
  "luminance": 0.13038
}

Semantic roles & 50–950 ramp

primary
#5F4CE1
secondary
#DAE2A7
accent
#EE3AD7
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CE1

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

Preview Lab → · Contrast checker → · Palette generator →

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