#5F4DDC#5F4DDC

#5F4DDC is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.5% C 0.208 H 282.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5F4DDC
RGBrgb(95, 77, 220)
HSLhsl(248, 67%, 58%)
HSVhsv(248, 65%, 86%)
CMYKcmyk(56.8%, 65%, 0%, 13.7%)
CIE-LABlab(42.62, 46.13, -70.81)
CIE-LCHlch(42.62, 84.51, 303.08°)
OKLaboklab(52.49% 0.044 -0.2037)
OKLCHoklch(52.49% 0.208 282.2)
XYZxyz(20.2875, 12.9066, 69.1185)
Luminance0.1291 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DDC #CADC4D
analogous
#4D83DC #5F4DDC #A64DDC
triadic
#5F4DDC #DC5F4D #4DDC5F
tetradic
#5F4DDC #DC4D83 #CADC4D #4DDCA6
square
#5F4DDC #DC4D83 #CADC4D #4DDCA6
split-complementary
#5F4DDC #DCA64D #83DC4D
monochromatic
#2B1D92 #3B27C5 #5F4DDC #8D80E6 #BBB3F0

Accessibility & contrast

On white

5.86
#5F4DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5F4DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DDC
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DDC#FFFFFF#000000##FFFFFF
##5F4DDC1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#1A718E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5f4ddc;
/* rgb */ color: rgb(95, 77, 220);
/* oklch */ color: oklch(52.5% 0.208 282.2);
Tailwind
colors: {
  custom: {
    50: '#9880e8',
    500: '#5f4ddc',
    950: '#000000',
  },
}
SCSS
$custom: #5f4ddc;
$custom-light: #9880e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4ddc",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 220
  },
  "hsl": {
    "h": 247.552,
    "s": 67.136,
    "l": 58.235
  },
  "oklch": {
    "l": 0.52489,
    "c": 0.20839,
    "h": 282.2
  },
  "luminance": 0.12908
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F4DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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