#5F4CDD#5F4CDD

#5F4CDD is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.4% C 0.211 H 282.3°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5F4CDD
RGBrgb(95, 76, 221)
HSLhsl(248, 68%, 58%)
HSVhsv(248, 66%, 87%)
CMYKcmyk(57%, 65.6%, 0%, 13.3%)
CIE-LABlab(42.49, 47.00, -71.60)
CIE-LCHlch(42.49, 85.65, 303.28°)
OKLaboklab(52.42% 0.0448 -0.206)
OKLCHoklch(52.42% 0.211 282.3)
XYZxyz(20.3509, 12.8209, 69.7949)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CDD #CADD4C
analogous
#4C81DD #5F4CDD #A74CDD
triadic
#5F4CDD #DD5F4C #4CDD5F
tetradic
#5F4CDD #DD4C81 #CADD4C #4CDDA7
square
#5F4CDD #DD4C81 #CADD4C #4CDDA7
split-complementary
#5F4CDD #DDA74C #81DD4C
monochromatic
#2B1C93 #3B26C6 #5F4CDD #8D7FE7 #BBB3F1

Accessibility & contrast

On white

5.89
#5F4CDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5F4CDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CDD
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CDD#FFFFFF#000000##FFFFFF
##5F4CDD1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E2
Deuteranopia (green-blind)
#005FDA
Tritanopia (blue-blind)
#18718E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5f4cdd;
/* rgb */ color: rgb(95, 76, 221);
/* oklch */ color: oklch(52.4% 0.211 282.3);
Tailwind
colors: {
  custom: {
    50: '#987fe9',
    500: '#5f4cdd',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cdd;
$custom-light: #987fe9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cdd",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 221
  },
  "hsl": {
    "h": 247.862,
    "s": 68.075,
    "l": 58.235
  },
  "oklch": {
    "l": 0.5242,
    "c": 0.21079,
    "h": 282.3
  },
  "luminance": 0.12822
}

Semantic roles & 50–950 ramp

primary
#5F4CDD
secondary
#D8DFA6
accent
#EB3DD4
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5F4CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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