#5F4CD4#5F4CD4

#5F4CD4 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.7% C 0.200 H 283.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5F4CD4
RGBrgb(95, 76, 212)
HSLhsl(248, 61%, 56%)
HSVhsv(248, 64%, 83%)
CMYKcmyk(55.2%, 64.2%, 0%, 16.9%)
CIE-LABlab(41.77, 44.27, -67.62)
CIE-LCHlch(41.77, 80.82, 303.21°)
OKLaboklab(51.68% 0.0458 -0.1943)
OKLCHoklch(51.68% 0.2 283.3)
XYZxyz(19.1838, 12.3541, 63.6483)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4CD4 #C1D44C
analogous
#4C7DD4 #5F4CD4 #A34CD4
triadic
#5F4CD4 #D45F4C #4CD45F
tetradic
#5F4CD4 #D44C7D #C1D44C #4CD4A3
square
#5F4CD4 #D44C7D #C1D44C #4CD4A3
split-complementary
#5F4CD4 #D4A34C #7DD44C
monochromatic
#2E2086 #3F2CB7 #5F4CD4 #8B7DE0 #B7AFEC

Accessibility & contrast

On white

6.05
#5F4CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5F4CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5F4CD4
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4CD4#FFFFFF#000000##FFFFFF
##5F4CD41.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.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: #5f4cd4;
/* rgb */ color: rgb(95, 76, 212);
/* oklch */ color: oklch(51.7% 0.200 283.3);
Tailwind
colors: {
  custom: {
    50: '#977fe2',
    500: '#5f4cd4',
    950: '#000000',
  },
}
SCSS
$custom: #5f4cd4;
$custom-light: #977fe2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4cd4",
  "rgb": {
    "r": 95,
    "g": 76,
    "b": 212
  },
  "hsl": {
    "h": 248.382,
    "s": 61.261,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51676,
    "c": 0.19961,
    "h": 283.3
  },
  "luminance": 0.12355
}

Semantic roles & 50–950 ramp

primary
#5F4CD4
secondary
#D2DAA2
accent
#E443CE
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A15
muted
#7E7C84

Preview Lab

Preview with #5F4CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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