#5F4DD4#5F4DD4

#5F4DD4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 51.8% C 0.198 H 283.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5F4DD4
RGBrgb(95, 77, 212)
HSLhsl(248, 61%, 57%)
HSVhsv(248, 64%, 83%)
CMYKcmyk(55.2%, 63.7%, 0%, 16.9%)
CIE-LABlab(41.99, 43.69, -67.27)
CIE-LCHlch(41.99, 80.21, 303.01°)
OKLaboklab(51.83% 0.0449 -0.1933)
OKLCHoklch(51.83% 0.198 283.1)
XYZxyz(19.2532, 12.4930, 63.6714)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4DD4 #C2D44D
analogous
#4D7FD4 #5F4DD4 #A34DD4
triadic
#5F4DD4 #D45F4D #4DD45F
tetradic
#5F4DD4 #D44D7F #C2D44D #4DD4A3
square
#5F4DD4 #D44D7F #C2D44D #4DD4A3
split-complementary
#5F4DD4 #D4A34D #7FD44D
monochromatic
#2E2086 #3F2CB7 #5F4DD4 #8B7EE0 #B8B0EC

Accessibility & contrast

On white

6.00
#5F4DD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5F4DD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4DD4
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4DD4#FFFFFF#000000##FFFFFF
##5F4DD41.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D8
Deuteranopia (green-blind)
#005ED1
Tritanopia (blue-blind)
#276E89
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5f4dd4;
/* rgb */ color: rgb(95, 77, 212);
/* oklch */ color: oklch(51.8% 0.198 283.1);
Tailwind
colors: {
  custom: {
    50: '#9780e2',
    500: '#5f4dd4',
    950: '#000000',
  },
}
SCSS
$custom: #5f4dd4;
$custom-light: #9780e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4dd4",
  "rgb": {
    "r": 95,
    "g": 77,
    "b": 212
  },
  "hsl": {
    "h": 248,
    "s": 61.086,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51833,
    "c": 0.1984,
    "h": 283.1
  },
  "luminance": 0.12494
}

Semantic roles & 50–950 ramp

primary
#5F4DD4
secondary
#D3DAA3
accent
#E444CF
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A15
muted
#7E7C84

Preview Lab

Preview with #5F4DD4

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

Preview Lab → · Contrast checker → · Palette generator →

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